got: `request._header` is not present
Describe the bug
- Got version: ^10.0.0-beta.1
- Node.js version: v13
- OS & version: macos
Actual behavior
Making HTTP POST request to a resource that returns response:
HTTP/1.1 302 Found
Server: Server
Date: Mon, 18 Nov 2019 18:51:50 GMT
Content-Type: text/html;charset=UTF-8
Content-Length: 0
Connection: close
X-XSS-Protection: 1
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
x-ua-compatible: IE=edge
Pragma: No-cache
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Location: https://[..]
Set-Cookie: [..]
x-amz-rid: 7FYHFS7W55AF5YAGF84X
Vary: Accept-Encoding,X-Amzn-CDN-Cache,X-Amzn-AX-Treatment,User-Agent
Produced an error (?):
`request._header` is not present. Please report this as a bug:
https://github.com/sindresorhus/got/issues/new?title=%60request._header%60+is+not+present&body=It+causes+%60uploadProgress%60+to+fail.
After that Got just hangs.
Expected behaviour
Follow Location
redirect/ return response.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (3 by maintainers)
Anyway this is fixed now, appreciate the help! 😃
You haven’t included any links here.
I’m trying to fix this using a Transform stream. I’ll let you know.
This is not a bug in Node. It’s just a missing feature that should’ve been existing from the start.