Skip to content

Commit fd8dd3e

Browse files
committed
fix grunt check
1 parent 428e95c commit fd8dd3e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Gruntfile.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ module.exports = function(grunt) {
7171

7272
function getVersion(repo, callback) {
7373
var uri = 'https://api.github.com/repos/' + repo + '/tags'
74-
request({json: true, url: uri}, function(err, res, body) {
74+
request({
75+
json: true,
76+
url: uri,
77+
headers: {
78+
'User-Agent': 'request'
79+
}
80+
}, function(err, res, body) {
7581
if (err) {
7682
callback(err);
7783
} else if (res.statusCode !== 200) {

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"mocha": "*",
88
"expect.js": "*",
99
"request": "*",
10+
"grunt": "*",
1011
"async": "*"
1112
},
1213
"spm": {

0 commit comments

Comments
 (0)