1
0
Fork 0
mirror of https://github.com/shlinkio/shlink.git synced 2025-05-03 05:44:36 +03:00

Updated CreateShortCodeContentNegotiationMiddleware so that query parameter takes precedence over Accept header

This commit is contained in:
Alejandro Celaya 2018-05-07 11:17:10 +02:00
parent 7c6da4985d
commit b0dbb2dae4
2 changed files with 5 additions and 3 deletions
module/Rest/test/Middleware/ShortCode

View file

@ -74,6 +74,7 @@ class CreateShortCodeContentNegotiationMiddlewareTest extends TestCase
['application/json', [], 'application/json'],
['application/xml', [], 'application/json'],
['text/plain', [], 'text/plain'],
['application/json', ['format' => 'txt'], 'text/plain'],
];
}