v14.6.6
- Fix stream auto-end for empty PATCH/DELETE/OPTIONS 4d5168c
- The bug was introduced in https://github.com/sindresorhus/got/commit/b65b0e1c300d745eb6956a4fb0bd19f3b177e144, where it incorrectly auto-closed streams for empty PATCH/DELETE/OPTIONS when using streams. This broke the documented use case of piping data to a got stream for these methods.
- Docs:
got.streamdoes not auto-end forOPTIONS,DELETE, orPATCHso you can pipe or write a body without gettingwrite after end. Callstream.end()when you are not piping a body.
https://github.com/sindresorhus/got/compare/v14.6.5...v14.6.6