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

Commit

Permalink
no need to worry about 304
Browse files Browse the repository at this point in the history
  • Loading branch information
weilu committed Jul 12, 2015
1 parent 6651d2b commit dfc4578
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ app.get('/', function(req, res){
uri: req.query.url
}, function(err, response, body){
res.statusCode = response.statusCode
if ((res.statusCode === 200 || res.statusCode === 304) &&
TX_URI.test(req.query.url)) {

// express strips out body for 304
if (res.statusCode === 200 && TX_URI.test(req.query.url)) {
body = stripTransactionData(body)
}
res.send(body);
Expand Down

0 comments on commit dfc4578

Please sign in to comment.