joy
joy copied to clipboard
Multipart bug fixes
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.