8000 Update README.md (#3936) · darth-coder-js/axios@e091491 · GitHub
[go: up one dir, main page]

Skip to content

Commit e091491

Browse files
Update README.md (axios#3936)
Fixing the example JSON of `Request Config` Co-authored-by: Jay <jasonsaayman@gmail.com>
1 parent b42fbad commit e091491

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,20 +456,20 @@ These are the available config options for making requests. Only the `url` is re
456456
// automatically. If set to `true` will also remove the 'content-encoding' header
457457
// from the responses objects of all decompressed responses
458458
// - Node only (XHR cannot turn off decompression)
459-
de A4B1 compress: true // default
459+
decompress: true, // default
460460

461461
// transitional options for backward compatibility that may be removed in the newer versions
462462
transitional: {
463463
// silent JSON parsing mode
464464
// `true` - ignore JSON parsing errors and set response.data to null if parsing failed (old behaviour)
465465
// `false` - throw SyntaxError if JSON parsing failed (Note: responseType must be set to 'json')
466-
silentJSONParsing: true; // default value for the current Axios version
466+
silentJSONParsing: true, // default value for the current Axios version
467467

468468
// try to parse the response string as JSON even if `resposeType` is not 'json'
469-
forcedJSONParsing: true;
469+
forcedJSONParsing: true,
470470

471471
// throw ETIMEDOUT error instead of generic ECONNABORTED on request timeouts
472-
clarifyTimeoutError: false;
472+
clarifyTimeoutError: false,
473473
}
474474
}
475475
```

0 commit comments

Comments
 (0)
0