Skip to content

Commit

Permalink
Use body caching
Browse files Browse the repository at this point in the history
  • Loading branch information
jwolski committed Feb 3, 2015
1 parent 66377f5 commit 5235996
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/request-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ proto.proxyReq = function proxyReq(opts) {
var timeout = opts.timeout ?
opts.timeout : ringpop.proxyReqTimeout;

body(req, onBody);
body(req, res, { cache: true }, onBody);

function onBody(err, rawBody) {
if (err) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"view-cover": "opn coverage/index.html"
},
"dependencies": {
"body": "^4.5.0",
"body": "^4.6.0",
"error": "^5.0.0",
"farmhash": "^0.2.0",
"metrics": "^0.1.8",
Expand Down

0 comments on commit 5235996

Please sign in to comment.