apreq: Sync r1894940 from libapreq.
@@ -41,7 +41,7 @@ struct hdr_ctx {
HDR_GAP,
HDR_VALUE,
HDR_NEWLINE,
- HDR_CONTLINE,
+ HDR_FOLDLINE,
HDR_WANTLINE,
HDR_NEXTLINE,
HDR_LASTLINE,
@@ -343,7 +343,6 @@ APREQ_DECLARE_PARSER(apreq_parse_headers)
if (off == dlen)
break;
- {
ch = data[off];
switch (ch) {
case ' ':
@@ -372,12 +371,11 @@ APREQ_DECLARE_PARSER(apreq_parse_headers)
ctx->status = HDR_NEXTLINE;
goto parse_hdr_bucket;
}
- }
/* fall thru */
- ctx->status = HDR_CONTLINE;
+ ctx->status = HDR_FOLDLINE;
- case HDR_CONTLINE:
+ case HDR_FOLDLINE:
while (off < dlen) {
ch = data[off++];
