Skip to content

Commit 4f44e42

Browse files
committed
http_client: exclude header key when looking for CRLF
1 parent d3b5958 commit 4f44e42

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
@@ -147,14 +147,14 @@ static int header_lookup(struct flb_http_client *c,
147147
return FLB_HTTP_NOT_FOUND;
148148
}
149149

150+
p += header_len;
151+
150152
/* Lookup CRLF (end of line \r\n) */
151153
crlf = strstr(p, "\r\n");
152154
if (!crlf) {
153155
return FLB_HTTP_MORE;
154156
}
155157

156-
p += header_len;
157-
158158
*out_val = p;
159159
*out_len = (crlf - p);
160160

0 commit comments

Comments
 (0)