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

refactor(headers): support all types of line breaks #1046

Merged
merged 1 commit into from Mar 18, 2024

Conversation

WaterLemons2k
Copy link
Contributor

What does this PR do?

Now, function checkParseHeaders only works properly if the line break is \r\n. Using the splitLines function solves this problem.

Fixes #1045

Motivation

Additional Notes

Rewritten the function checkParseHeaders and renamed it to extractHeaders for better readability.

Now it only works properly if the line break is `\r\n`. Using the `splitLines` function solves this problem.

Rewritten the function `checkParseHeaders` and renamed it to `extractHeaders` for better readability.
@jeessy2 jeessy2 merged commit 4c11754 into jeessy2:master Mar 18, 2024
2 checks passed
@WaterLemons2k WaterLemons2k deleted the headers branch March 18, 2024 13:38
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

Successfully merging this pull request may close these issues.

webhook如何设置多个headers ?
2 participants