From 90f8dbd86ea729717db42a705131e2bb96b6c076 Mon Sep 17 00:00:00 2001 From: Kit Cambridge Date: Fri, 26 Apr 2013 09:38:04 -0700 Subject: [PATCH] `minify`: Send a `User-Agent` header to avoid 403 responses from GitHub. [ci skip] [closes #255] Former-commit-id: 1879b790b4ace543430edba6ae62d33c963f0344 --- build/minify.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/minify.js b/build/minify.js index 31aa937eb..5374462ca 100755 --- a/build/minify.js +++ b/build/minify.js @@ -310,7 +310,10 @@ // containing Base64-encoded blob data. Overriding the `Accept` header // with the GitHub raw media type returns the blob data directly. // See http://developer.github.com/v3/media/. - 'Accept': mediaType + 'Accept': mediaType, + // As of 2013-04-24, the GitHub API mandates the `User-Agent` header + // for all requests. + 'User-Agent': 'Lo-Dash/' + _.VERSION } }, function(response) { var decompressor = zlib.createUnzip(),