Skip to content

Commit

Permalink
Remove user-agent header
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Jan 4, 2011
1 parent ecebc46 commit f6a2ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model/package.js
Expand Up @@ -265,7 +265,7 @@ function cacheArchive(url){


function request(args, tries){ function request(args, tries){
tries = tries || 1; 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 : "")); print("Downloading " + args.url + (tries > 1 ? " attempt #" + tries : ""));
return httpClient.request(args).then(function(response){ return httpClient.request(args).then(function(response){
if(response.status == 302 || response.status == 301){ if(response.status == 302 || response.status == 301){
Expand Down

0 comments on commit f6a2ef6

Please sign in to comment.