Skip to content

Commit

Permalink
Add test for application/json;charset=UTF-8, jhthorsen/mojolicious-pl…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Henning Thorsen committed Jun 17, 2021
1 parent f9c2013 commit 380fce5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/util.t
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ is_deeply(
is negotiate_content_type([]), '', 'accepts nothing';
is negotiate_content_type(['multipart/form-data'], 'multipart/form-data; boundary=mgkBX'), 'multipart/form-data',
'form-data boundary';
is negotiate_content_type(['application/json'], 'application/json;charset=UTF-8'), 'application/json', 'charset';
is negotiate_content_type(['application/json']), '', 'header missing';
is negotiate_content_type(['application/json', 'text/plain'], 'application/json'), 'application/json', 'exact match';
is negotiate_content_type(['application/json', 'text/*'], 'text/plain'), 'text/*', 'closest accept';
is negotiate_content_type(['application/json', 'text/*'], 'text/plain'), 'text/*', 'closest accept';
is negotiate_content_type(
['text/plain', 'application/xml'],
'text/html;text/plain;q=0.2,application/xml;q=0.9,*/*;q=0.8'
Expand Down

0 comments on commit 380fce5

Please sign in to comment.