Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a92b5d5

Browse filesBrowse files
tmclojimmywarting
andauthored
fix: use space in accept-encoding values (#1572)
* fix for issue #1571 * Update README.md Co-authored-by: Jimmy Wärting <jimmy@warting.se>
1 parent 0f122b8 commit a92b5d5
Copy full SHA for a92b5d5

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ If no values are set, the following request headers will be sent automatically:
537537

538538
| Header | Value |
539539
| ------------------- | ------------------------------------------------------ |
540-
| `Accept-Encoding` | `gzip,deflate,br` _(when `options.compress === true`)_ |
540+
| `Accept-Encoding` | `gzip, deflate, br` (when `options.compress === true`) |
541541
| `Accept` | `*/*` |
542542
| `Connection` | `close` _(when no `options.agent` is present)_ |
543543
| `Content-Length` | _(automatically calculated, if possible)_ |

‎src/request.js

Copy file name to clipboardExpand all lines: src/request.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export const getNodeRequestOptions = request => {
280280

281281
// HTTP-network-or-cache fetch step 2.15
282282
if (request.compress && !headers.has('Accept-Encoding')) {
283-
headers.set('Accept-Encoding', 'gzip,deflate,br');
283+
headers.set('Accept-Encoding', 'gzip, deflate, br');
284284
}
285285

286286
let {agent} = request;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.