What is the expected behavior?
common.isJSONContent('application/json; charset=utf-8') === true
What is the actual behavior?
common.isJSONContent('application/json; charset=utf-8') === false
Possible solution
Change implementation to:
return contentType.startsWith('application/json');
// or contentType.indexOf('application/json') === 0
How to reproduce the issue
Use the recorder to capture a request using an HTTP client that uses the charset directive in the Content-Type header. E.g., ms-rest
Does the bug have a test case?
Runkit
Versions
| Software |
Version(s) |
| Nock |
9.6.1 |
| Node |
8.11.4 |
What is the expected behavior?
What is the actual behavior?
Possible solution
Change implementation to:
How to reproduce the issue
Use the recorder to capture a request using an HTTP client that uses the
charsetdirective in theContent-Typeheader. E.g.,ms-restDoes the bug have a test case?
Runkit
Versions