mirror of
https://github.com/curl/curl.git
synced 2026-08-26 11:43:32 +03:00
alt-svc: the libcurl bits
This commit is contained in:
parent
4331a3b8fa
commit
e1be825453
25 changed files with 1180 additions and 32 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue