Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added options.connection for Connection HTTP header

  • Loading branch information...
commit 7b16f38d8e32420004831e049dfbdf5760088486 1 parent c1c73ed
@tomas authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/needle.js
View
6 lib/needle.js
@@ -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')
Please sign in to comment.
Something went wrong with that request. Please try again.