Fix broken travis branches

Hello,

Looks like when you request a build status for a branch it ignores the branch!
Seems a typo in the code.

Jason
This commit is contained in:
Jason Woods 2015-10-13 16:56:53 +01:00
parent f207b4f60f
commit cc070f535e

View File

@ -295,7 +295,7 @@ cache(function(data, match, sendBadge, request) {
uri: 'https://api.travis-ci.org/' + userRepo + '.svg',
};
if (branch != null) {
options.path += '?branch=' + branch;
options.uri += '?branch=' + branch;
}
var badgeData = getBadgeData('build', data);
request(options, function(err, res) {