From cc070f535ef6184dc04781aeebf1565076967633 Mon Sep 17 00:00:00 2001 From: Jason Woods Date: Tue, 13 Oct 2015 16:56:53 +0100 Subject: [PATCH] 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 --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index f6958dae53a93..92e2eeecc2510 100644 --- a/server.js +++ b/server.js @@ -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) {