Skip to content

Commit

Permalink
Send 504 Gateway Timeout for vendor unreachable
Browse files Browse the repository at this point in the history
As discussed in #445
  • Loading branch information
espadrine committed Nov 8, 2015
1 parent 7443648 commit beebab6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ function cache(f) {
}
var badgeData = getBadgeData('vendor', data);
badgeData.text[1] = 'unresponsive';
ask.res.statusCode = 504; // Gateway Timeout
var extension;
try {
extension = match[0].split('.').pop();
Expand Down

0 comments on commit beebab6

Please sign in to comment.