Skip to content
Prev Previous commit
Next Next commit
doc: make acceptEncoding const
  • Loading branch information
Hackzzila committed May 2, 2018
commit 69cc5043b9ba20881c1094339f001ba204cb6229
2 changes: 1 addition & 1 deletion doc/api/brotli.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const http = require('http');
const fs = require('fs');
http.createServer((request, response) => {
const raw = fs.createReadStream('index.html');
let acceptEncoding = request.headers['accept-encoding'] || '';
const acceptEncoding = request.headers['accept-encoding'] || '';

// Note: This is not a conformant accept-encoding parser.
// See https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3
Expand Down