-
Notifications
You must be signed in to change notification settings - Fork 156
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
fix: change LF to CRLF symbol in getAllResponseHeaders facade's method #163
Conversation
Can you plz prettier these files using our prettier config Run npx prettier --check . Other than that, looks like a reasonable change :) though I'll leave this one to @TrickyPi to decide |
Sorry! @TrickyPi setup CI - hopefully he can help :) |
@jpillora unfortunately I cannot understand why prettier checks in CI and locally are different. I have such output :) npx prettier --check .
Checking formatting...
All matched files use Prettier code style! |
I'll take a look. |
I realized that I had different version of prettier. Tell me please how I can find out what specific problems are in the files. |
@avivasyuta Could you try to run |
done ✅ |
@TrickyPi could you publish new version of lib? |
I published v1.6.0 to npm. But the github publish failed, maybe I need to publish manually. |
Hello.
The documentation defines that the getAllResponseHeaders method of XMLHttpRequest should return all the response headers, separated by CRLF. In xhook facade implements LF separator instead of CRLF.
It breaks scripts that manually try to parse the header string received from the method getAllResponseHeaders.
Example
Output
This code will generate an array of headers that has only one element. So I made a PR with changes that fix this issue.
It will be great if you can check it out.