mirror of
https://github.com/curl/curl.git
synced 2026-08-26 09:43:32 +03:00
lib: fix formatting nits (part 2)
From `lib/curl*` to `lib/g*`. With fixes to part 1.
part 1: 47a1ab2ebe #19764
Closes #19800
This commit is contained in:
parent
3e2a946926
commit
86b346443b
56 changed files with 976 additions and 1088 deletions
15
lib/cookie.c
15
lib/cookie.c
|
|
@ -661,13 +661,12 @@ parse_cookie_header(struct Curl_easy *data,
|
|||
return CURLE_OK;
|
||||
}
|
||||
|
||||
static CURLcode
|
||||
parse_netscape(struct Cookie *co,
|
||||
struct CookieInfo *ci,
|
||||
bool *okay,
|
||||
const char *lineptr,
|
||||
bool secure) /* TRUE if connection is over secure
|
||||
origin */
|
||||
static CURLcode parse_netscape(struct Cookie *co,
|
||||
struct CookieInfo *ci,
|
||||
bool *okay,
|
||||
const char *lineptr,
|
||||
bool secure) /* TRUE if connection is over
|
||||
secure origin */
|
||||
{
|
||||
/*
|
||||
* This line is NOT an HTTP header style line, we do offer support for
|
||||
|
|
@ -1247,7 +1246,7 @@ static int cookie_sort_ct(const void *p1, const void *p2)
|
|||
|
||||
bool Curl_secure_context(struct connectdata *conn, const char *host)
|
||||
{
|
||||
return conn->handler->protocol&(CURLPROTO_HTTPS|CURLPROTO_WSS) ||
|
||||
return conn->handler->protocol & (CURLPROTO_HTTPS | CURLPROTO_WSS) ||
|
||||
curl_strequal("localhost", host) ||
|
||||
!strcmp(host, "127.0.0.1") ||
|
||||
!strcmp(host, "::1");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue