Skip to content
Browse files

Add default user-agent

  • Loading branch information...
1 parent f61ec6b commit 2f4609aea21bfd86ba8f24a5da5b1082c49aeead @isaacs isaacs committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/request.js
View
3 lib/request.js
@@ -160,7 +160,8 @@ function makeRequest (method, remote, where, what, etag, nofollow, tok, cb_) {
headers.accept = "application/json"
- headers["user-agent"] = this.conf.get('user-agent')
+ headers["user-agent"] = this.conf.get('user-agent') ||
+ 'node/' + process.version
var p = this.conf.get('proxy')
var sp = this.conf.get('https-proxy') || p

0 comments on commit 2f4609a

Please sign in to comment.
Something went wrong with that request. Please try again.