Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove user-agent header

  • Loading branch information...
commit f6a2ef657cf729d3519081e586efbd6d56d5e5f1 1 parent ecebc46
@kriszyp authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/model/package.js
View
2  lib/model/package.js
@@ -265,7 +265,7 @@ function cacheArchive(url){
function request(args, tries){
tries = tries || 1;
- (args.headers = args.headers || {})["user-agent"] = "CommonJS Package Repository 0.1";
+// (args.headers = args.headers || {})["user-agent"] = "CommonJS Package Repository 0.1";
print("Downloading " + args.url + (tries > 1 ? " attempt #" + tries : ""));
return httpClient.request(args).then(function(response){
if(response.status == 302 || response.status == 301){
Please sign in to comment.
Something went wrong with that request. Please try again.