Skip to content

Commit b739cb6

Browse files
committed
http_client: exclude header key when looking for CRLF
1 parent d7f5c07 commit b739cb6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/flb_http_client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,14 @@ static int header_lookup(struct flb_http_client *c,
159159
return FLB_HTTP_NOT_FOUND;
160160
}
161161

162+
p += header_len;
163+
162164
/* Lookup CRLF (end of line \r\n) */
163165
crlf = strstr(p, "\r\n");
164166
if (!crlf) {
165167
return FLB_HTTP_MORE;
166168
}
167169

168-
p += header_len;
169-
170170
*out_val = p;
171171
*out_len = (crlf - p);
172172

0 commit comments

Comments
 (0)