Skip to content

Instantly share code, notes, and snippets.

@Akkuma
Created July 24, 2017 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Akkuma/371ee10f257f8df498ded92da396b882 to your computer and use it in GitHub Desktop.
Save Akkuma/371ee10f257f8df498ded92da396b882 to your computer and use it in GitHub Desktop.
if (ctx.path.indexOf('proxy') >= 0) {
ctx.type = 'application/octet-stream';
body = ctx.req.on('error', ctx.onerror).pipe(stream.PassThrough());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment