pallets-eco / flask-negotiate

Content negotiation for Flask apps
MIT License
12 stars 3 forks source link

@produces does not handle wildcards properly #4

Open karolmajta opened 9 years ago

karolmajta commented 9 years ago
@produces('application/json')

will cause 406 when client accepts */*

@produces('application/json', '*/*')

works fine.

This should not require the second form. If client accepts */* then application/json response is perfectly valid.

jackfirth commented 9 years ago

+1, just hit this issue myself

alexkalderimis commented 8 years ago

@karolmajta see https://github.com/mattupstate/flask-negotiate/pull/3