Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(brave): streaming compressed payload from gw
WIP hapi patch: detect browserified streams in Chrome App environment Detection via `stream instanceof Stream` does not work correctly in browser context, especially when different polyfils are used and mixed together. This replaces instanceof check with feature-detection, which enables Hapi to consume stream-like objects, as long they match proper contract. WIP js-ipfs patch: do proper streaming and content-type sniffing 1. Simplifies code responsible for streaming response and makes the streaming actually work by telling the payload compression stream to flush its content on every read(). (previous version was buffering entire thing in Hapi's compressor memory) 2. Content-type sniffing is now done over first 512 bytes.
- Loading branch information