Review feedback.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
committed by
Eric Peterson
parent
1bada775a9
commit
693db1da54
+1
-1
@@ -112,7 +112,7 @@ export const createCacheMiddleware = ({
|
||||
};
|
||||
|
||||
// When a socket is closed, if there were no errors and the data written
|
||||
// over the socket should be cached, cache it as a base64-encoded string!
|
||||
// over the socket should be cached, cache it!
|
||||
socket.on('close', hadError => {
|
||||
if (writeToCache && !hadError) {
|
||||
cache.set(reqPath, Buffer.concat(chunks));
|
||||
|
||||
Reference in New Issue
Block a user