make sure we format the response as json when status is 202, fixes #2245#2258
make sure we format the response as json when status is 202, fixes #2245#2258stalep wants to merge 1 commit intoHyperfoil:masterfrom
Conversation
|
Hi @stalep, I am not that sure this enough because the returned object (if we use Another thing is that, if we want to change from text to json, I would try to ensure the endpoint always return JSON regardless of the http code. wdyt?
|
Yes, I did not mean to do a pr here really, the idea was to make it as a draft and discuss the two points you mentions :)
Yes, most likely which also was why I just wanted this as a draft. |
Make sure to encode 202 responses as json.