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

Commit

Permalink
Force status code 200 for OK responses, fixes #585 (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff authored Feb 25, 2019
1 parent 90dd9a2 commit 507e4ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions static.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ function deliverPlain(owner, repo, ref, entry, root) {
const body = getBody(type, response.body);
console.log(`delivering file ${cleanentry} type ${type} binary: ${isBinary(type)}`);
return {
statusCode: 200,
headers: addHeaders({
'Content-Type': type,
'X-Static': 'Raw/Static',
Expand Down

0 comments on commit 507e4ce

Please sign in to comment.