-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Problem getting different responses with "Prefer: status=xxx" header #88
Comments
hey @khaliddermoumi thanks for your question, I'll have a look at this over the next day and get back to you 👍 |
I can see while debugging that the content type isn't being matched for your 409 prefer header request. I'll investigate this and hopefully get a fix in for tomorrow 👍 Thanks again for reporting this |
Thanks Yakov! |
OK so, I've spent some time looking at this, what Drakov expects is a collection of request/response pairs. Since your You could either copy the request into the
|
Thanks for your investigation, Yakov! |
I have a problem getting different responses using the "Prefer"-header.
In the FAQ, it says: "You can request a specific response by adding a Prefer header to the request in the form Prefer:status=XXX where XXX is the status code of the desired response."
I have tried that and can't get it to work.
I have a blueprint with a PUT-action, that has 2 responses defined:
Now, when I call using curl, drakov properly returns the "200" response (as expected):
But, when I add the "Prefer"-header (as documented), drakov does not return the "409" response, but says "cannot PUT":
-> Response is:
Cannot PUT /something/ec58279d79f242189d153f575a8b9df0
Any hints what is wrong?
BTW: thx a lot for drakov!
Regards,
Khalid
The text was updated successfully, but these errors were encountered: