Permalink
Browse files

Added options.connection for Connection HTTP header

  • Loading branch information...
1 parent c1c73ed commit 7b16f38d8e32420004831e049dfbdf5760088486 @tomas committed Aug 30, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/needle.js
View
@@ -72,9 +72,9 @@ var Needle = {
});
config.headers = {
- 'User-Agent': options.user_agent || this.default_user_agent,
- 'Connection': 'close',
- 'Accept': options.accept || '*/*'
+ 'Accept': options.accept || '*/*',
+ 'Connection': options.connection || 'close',
+ 'User-Agent': options.user_agent || this.default_user_agent
}
if (options.compressed && typeof unzip != 'undefined')

0 comments on commit 7b16f38

Please sign in to comment.