uWebSockets icon indicating copy to clipboard operation
uWebSockets copied to clipboard

Multipart with quoted boundary is not parsed correctly, which is not standard compliant.

Open fragrans opened this issue 4 years ago • 3 comments

I was using Powershell scripts to run some tests with my app embedded with uWebsockets, and found wired errors; I googled around, found this: https://github.com/PowerShell/PowerShell/issues/9241

fragrans avatar Apr 28 '21 07:04 fragrans

MultipartParser does not work with " like you say. This is not an issue in most cases but apparently Microsoft's tools rely on this.

ghost avatar May 06 '21 05:05 ghost

I had to remove quotes inside MultipartParser.prependedBoundary directly after construct;

fragrans avatar May 06 '21 05:05 fragrans

Really the WebSocketExtensions parsing and MultipartParser and HttpParser should be refactored to share the same parsings for things like XX="YY"; ZZ="ÅÅ" kind of parsing that is used in web protocols.

ghost avatar May 06 '21 05:05 ghost