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

Multipart bug fixes #108

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

denyadzi
Copy link

Hi! This PR fixes two problems:

  • The csrf token wasn't taken from multipart body
  • The multipart body parser used function string/trimr with a second argument. This argument passes a set of chars being treated as whitespace. Each of these chars are trimmed by this function from the end of the string. So, if data string ended with some of these chars, it was trimmed also.

string/trimr trims data if it ends with some char from the second argument
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.

1 participant