Skip to content

Commit

Permalink
proxy.spec.js: fix type of responseStatus
Browse files Browse the repository at this point in the history
This is required to be an int, so
make it an int on construction.
  • Loading branch information
pjonsson committed May 22, 2024
1 parent 7e4b79d commit a3b1ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/proxy.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ describe('proxy', function() {
}

function requestFake(req) {
const responseStatus = req.headers['x-give-response-status'] || 200;
const responseStatus = parseInt(req.headers['x-give-response-status']) || 200;
var request = {
on: function(event, cb) {
if (event === 'response') {
Expand Down

0 comments on commit a3b1ece

Please sign in to comment.