From 8e14066578c7677bdc02a3186d28513b01ee591d Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Thu, 9 Jan 2020 00:18:54 +0800 Subject: [PATCH] doc: fix a code example in zlib.md PR-URL: https://github.com/nodejs/node/pull/31264 Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: David Carlier Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell Reviewed-By: Rich Trott --- doc/api/zlib.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/zlib.md b/doc/api/zlib.md index a791cbc7387ded..abc046fab4da76 100644 --- a/doc/api/zlib.md +++ b/doc/api/zlib.md @@ -115,7 +115,7 @@ const fs = require('fs'); http.createServer((request, response) => { const raw = fs.createReadStream('index.html'); // Store both a compressed and an uncompressed version of the resource. - response.setHeader('Vary: Accept-Encoding'); + response.setHeader('Vary', 'Accept-Encoding'); let acceptEncoding = request.headers['accept-encoding']; if (!acceptEncoding) { acceptEncoding = '';