Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Har support - mimeType and charset #1872

Closed
sod opened this issue Oct 28, 2015 · 1 comment
Closed

Har support - mimeType and charset #1872

sod opened this issue Oct 28, 2015 · 1 comment

Comments

@sod
Copy link

sod commented Oct 28, 2015

Chrome 46, Debugger tools Har export.

I tried to repeat a request via har data.

My har file has: req.postData.mimeType === 'application/x-www-form-urlencoded; charset=UTF-8' but the switch switch (data.postData.mimeType) { in https://github.com/request/request/blob/master/lib/har.js#L63 does not expect to have the ; charset=UTF-8 in here.

The request itself works. But if I modify the postData, it is not recognised as no switch/case matches.

@simov
Copy link
Member

simov commented Oct 29, 2015

@sod check out this PR #1876

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants