mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
minify: Send a User-Agent header to avoid 403 responses from GitHub. [ci skip] [closes #255]
Former-commit-id: 1879b790b4ace543430edba6ae62d33c963f0344
This commit is contained in:
@@ -310,7 +310,10 @@
|
|||||||
// containing Base64-encoded blob data. Overriding the `Accept` header
|
// containing Base64-encoded blob data. Overriding the `Accept` header
|
||||||
// with the GitHub raw media type returns the blob data directly.
|
// with the GitHub raw media type returns the blob data directly.
|
||||||
// See http://developer.github.com/v3/media/.
|
// 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) {
|
}, function(response) {
|
||||||
var decompressor = zlib.createUnzip(),
|
var decompressor = zlib.createUnzip(),
|
||||||
|
|||||||
Reference in New Issue
Block a user