Fix Multipart parser bug
This commit is contained in:
@@ -108,6 +108,11 @@ namespace uWS {
|
|||||||
quoteLength++;
|
quoteLength++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* We can't remove_prefix if we have nothing to remove */
|
||||||
|
if (!remainingLine.length()) {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
remainingLine.remove_prefix(1);
|
remainingLine.remove_prefix(1);
|
||||||
return quote.substr(0, quoteLength);
|
return quote.substr(0, quoteLength);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user