Skip to content

Commit

Permalink
FIXED: Only the first Media Type in an Accept header is considered.
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterbeek committed Aug 12, 2017
1 parent c0a9dff commit 41a17cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prolog/http/http_server.pl
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
%! rest_media_type(+MediaTypes:list(compound), :Goal_1) is det.

rest_media_type(MediaTypes, Goal_1) :-
member(MediaType, MediaTypes), !,
member(MediaType, MediaTypes),
call(Goal_1, MediaType), !.
rest_media_type(MediaTypes, _) :-
rest_exception(MediaTypes, 406).
Expand Down

0 comments on commit 41a17cd

Please sign in to comment.