diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-03-03 11:17:52 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-03-03 11:17:52 +0100 |
commit | e1be8254534898fccafc5d6cd04f6235f283cfbd (patch) | |
tree | d48bbbf5cb59d93e82fc14f13f1b0c7a7e5044d3 /lib/cookie.c | |
parent | 4331a3b8fa40cc8d71b7abb36b096dccdc11e3cb (diff) | |
download | curl-e1be8254534898fccafc5d6cd04f6235f283cfbd.tar.gz |
alt-svc: the libcurl bits
Diffstat (limited to 'lib/cookie.c')
-rw-r--r-- | lib/cookie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cookie.c b/lib/cookie.c index 65cc11732..b24aaf718 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -1092,7 +1092,7 @@ Curl_cookie_add(struct Curl_easy *data, * get_line() makes sure to only return complete whole lines that fit in 'len' * bytes and end with a newline. */ -static char *get_line(char *buf, int len, FILE *input) +char *Curl_get_line(char *buf, int len, FILE *input) { bool partial = FALSE; while(1) { @@ -1172,7 +1172,7 @@ struct CookieInfo *Curl_cookie_init(struct Curl_easy *data, line = malloc(MAX_COOKIE_LINE); if(!line) goto fail; - while(get_line(line, MAX_COOKIE_LINE, fp)) { + while(Curl_get_line(line, MAX_COOKIE_LINE, fp)) { if(checkprefix("Set-Cookie:", line)) { /* This is a cookie line, get it! */ lineptr = &line[11]; |