Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Update user-agent to be simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
alebelcor committed Dec 18, 2015
1 parent 2e113c4 commit 0578286
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 26 deletions.
7 changes: 6 additions & 1 deletion index.js
Expand Up @@ -3,9 +3,14 @@
var ghGot = require('gh-got');

var getTeamUrl = require('./lib/get-team-url');
var getGotOptions = require('./lib/get-got-options');
var filterResponse = require('./lib/filter-response');
var isGhTeamEmpty = require('./lib/is-gh-team-empty');
var pkg = require('./package.json');
var getGotOptions = {
headers: {
'user-agent': pkg.repository.url
}
};

module.exports = function (teamId) {
return ghGot.get(getTeamUrl(teamId), getGotOptions())
Expand Down
11 changes: 0 additions & 11 deletions lib/get-got-options.js

This file was deleted.

14 changes: 0 additions & 14 deletions test/get-got-options.js

This file was deleted.

0 comments on commit 0578286

Please sign in to comment.