This repository has been archived by the owner on Dec 20, 2020. It is now read-only.
HEAD request ignores 'data' parameter #142
Comments
It's not a bug, it comes from the spec of the HTTP protocol : https://stackoverflow.com/questions/4529066/post-data-with-head-request |
Hi,
Well, I don't want to post data with HEAD request, I want my 'data' object
to be converted to query strings.
This is what happen for a GET request, but not for a HEAD request.
According to spec, HEAD request should accept query string (same as GET
request)
Thanks,
Mederic
…On Fri, Aug 11, 2017 at 1:59 AM, Aurélien Delogu ***@***.***> wrote:
It's not a bug, it comes from the spec of the HTTP protocol :
https://stackoverflow.com/questions/4529066/post-data-with-head-request
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#142 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACa9SA6EPEZ5-0EdlrkR-f1sVlTgqrPyks5sXBgCgaJpZM4O0CuG>
.
|
Sorry, I misunderstood your issue. Anyway, this feature request is tricky. This is not a bug, but a design issue. I think I should add a new |
Great!
Thanks
…On Sat, Aug 12, 2017 at 6:49 AM, Aurélien Delogu ***@***.***> wrote:
Sorry, I misunderstood your issue. Anyway, this feature request is tricky.
This is not a bug, but a design issue. I think I should add a new dataType
option, like queryString. I will work on this by sunday/monday.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#142 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACa9SIhi6ZSt_EG12mgpH2LGDJNKvcucks5sXa1SgaJpZM4O0CuG>
.
|
It should be fixed by now ;) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I call:
qwest.map('GET', 'example.com', {canApprove: true})
it successfully requests 'example.com?canApprove=true'
But, when I call:
qwest.map('HEAD', 'example.com', {canApprove: true})
it requests 'example.com' with no query string
It looks like 'data' parameter is ignore for HEAD request.
The text was updated successfully, but these errors were encountered: