Skip to content

Commit

Permalink
lint: remove unreachable code branch
Browse files Browse the repository at this point in the history
closes #129
  • Loading branch information
Chima1707 authored and dougwilson committed Oct 4, 2017
1 parent 5d7bead commit 0176afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
} else {
// Safari (and potentially other browsers) need content-length 0,
// for 204 or they just hang waiting for a body
res.statusCode = options.optionsSuccessStatus || defaults.optionsSuccessStatus;
res.statusCode = options.optionsSuccessStatus;
res.setHeader('Content-Length', '0');
res.end();
}
Expand Down

0 comments on commit 0176afa

Please sign in to comment.