Fix Multipart parser bug

This commit is contained in:
Alex Hultman
2021-03-03 12:56:33 +01:00
parent b0841451ca
commit b7202e71ee
+5
View File
@@ -108,6 +108,11 @@ namespace uWS {
quoteLength++;
}
/* We can't remove_prefix if we have nothing to remove */
if (!remainingLine.length()) {
return {};
}
remainingLine.remove_prefix(1);
return quote.substr(0, quoteLength);
} else {