Browse files

fixing streaming example. fixes #164

  • Loading branch information...
mikeal committed Feb 8, 2012
1 parent c08ab7e commit e77a1695c5c632c067857e99274f28a1d74301fe
Showing with 1 addition and 1 deletion.
  1. +1 −1
@@ -38,7 +38,7 @@ request('').pipe(fs.createWriteStream('doodle.png'))
You can also stream a file to a PUT or POST request. This method will also check the file extension against a mapping of file extensions to content-types, in this case `application/json`, and use the proper content-type in the PUT request if one is not already provided in the headers.
Request can also pipe to itself. When doing so the content-type and content-length will be preserved in the PUT headers.

0 comments on commit e77a169

Please sign in to comment.