-
-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Headers are not being parsed correctly in Windows #600
Comments
I checked this in the 64 bit version of Windows. Same problem. |
I peered into the code here in line 34 of https://github.com/adnanh/webhook/blob/master/internal/hook/hook.go and I found that the correct way to specify a single header as source is "header" and not "headers" So now this is working in Win32, Win64 and Ubuntu.
But the "entire-headers" is NOT working in either Win64 or Win32. It is truncating after 40 chars. Is that deliberate? |
I am running the 32bit version of the webhook exectuable
When I run the following hooks.json
I get this in the verbose output
But it passes only a partial string to scr.bat. See below:
If I change the pass-aguments-to-command to the following
Then it does not find the "Referer" header! Though internally it has got the entire headers it is unable to parse it beyond the word "gzip" (Maybe there is some hidden character sent by the browser that is spoiling the show)
The text was updated successfully, but these errors were encountered: