Skip to content

Commit 4524c11

Browse files
dragonman225Trott
authored andcommitted
doc: fix a code example in zlib.md
PR-URL: #31264 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 3bcb2e1 commit 4524c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/zlib.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const fs = require('fs');
115115
http.createServer((request, response) => {
116116
const raw = fs.createReadStream('index.html');
117117
// Store both a compressed and an uncompressed version of the resource.
118-
response.setHeader('Vary: Accept-Encoding');
118+
response.setHeader('Vary', 'Accept-Encoding');
119119
let acceptEncoding = request.headers['accept-encoding'];
120120
if (!acceptEncoding) {
121121
acceptEncoding = '';

0 commit comments

Comments
 (0)