mirror of
https://github.com/curl/curl.git
synced 2026-08-06 02:56:15 +03:00
misc: typo and grammar fixes
- Replace `Github` with `GitHub`. - Replace `windows` with `Windows` - Replace `advice` with `advise` where a verb is used. - A few fixes on removing repeated words. - Replace `a HTTP` with `an HTTP` Closes #9802
This commit is contained in:
parent
b7260c4fda
commit
4484270afc
57 changed files with 106 additions and 106 deletions
|
|
@ -245,7 +245,7 @@ static int hyper_body_chunk(void *userdata, const hyper_buf *chunk)
|
|||
}
|
||||
|
||||
/*
|
||||
* Hyper does not consider the status line, the first line in a HTTP/1
|
||||
* Hyper does not consider the status line, the first line in an HTTP/1
|
||||
* response, to be a header. The libcurl API does. This function sends the
|
||||
* status line in the header callback. */
|
||||
static CURLcode status_line(struct Curl_easy *data,
|
||||
|
|
@ -740,7 +740,7 @@ static int uploadstreamed(void *userdata, hyper_context *ctx,
|
|||
}
|
||||
|
||||
/*
|
||||
* bodysend() sets up headers in the outgoing request for a HTTP transfer that
|
||||
* bodysend() sets up headers in the outgoing request for an HTTP transfer that
|
||||
* sends a body
|
||||
*/
|
||||
|
||||
|
|
@ -845,7 +845,7 @@ static void http1xx_cb(void *arg, struct hyper_response *resp)
|
|||
}
|
||||
|
||||
/*
|
||||
* Curl_http() gets called from the generic multi_do() function when a HTTP
|
||||
* Curl_http() gets called from the generic multi_do() function when an HTTP
|
||||
* request is to be performed. This creates and sends a properly constructed
|
||||
* HTTP request.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -515,7 +515,7 @@ Curl_cookie_add(struct Curl_easy *data,
|
|||
return NULL; /* bail out if we're this low on memory */
|
||||
|
||||
if(httpheader) {
|
||||
/* This line was read off a HTTP-header */
|
||||
/* This line was read off an HTTP-header */
|
||||
char name[MAX_NAME];
|
||||
char what[MAX_NAME];
|
||||
const char *ptr;
|
||||
|
|
@ -864,7 +864,7 @@ Curl_cookie_add(struct Curl_easy *data,
|
|||
}
|
||||
else {
|
||||
/*
|
||||
* This line is NOT a HTTP header style line, we do offer support for
|
||||
* This line is NOT an HTTP header style line, we do offer support for
|
||||
* reading the odd netscape cookies-file format here
|
||||
*/
|
||||
char *ptr;
|
||||
|
|
|
|||
|
|
@ -385,7 +385,7 @@ CURLcode Curl_output_ntlm_wb(struct Curl_easy *data, struct connectdata *conn,
|
|||
bool proxy)
|
||||
{
|
||||
/* point to the address of the pointer that holds the string to send to the
|
||||
server, which is for a plain host or for a HTTP proxy */
|
||||
server, which is for a plain host or for an HTTP proxy */
|
||||
char **allocuserpwd;
|
||||
/* point to the name and password for this */
|
||||
const char *userp;
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
*
|
||||
* AddHttpPost()
|
||||
*
|
||||
* Adds a HttpPost structure to the list, if parent_post is given becomes
|
||||
* Adds an HttpPost structure to the list, if parent_post is given becomes
|
||||
* a subpost of parent_post instead of a direct list element.
|
||||
*
|
||||
* Returns newly allocated HttpPost on success and NULL if malloc failed.
|
||||
|
|
@ -199,7 +199,7 @@ static struct FormInfo *AddFormInfo(char *value,
|
|||
* CURL_FORMADD_MEMORY if the allocation of a FormInfo struct failed
|
||||
* CURL_FORMADD_UNKNOWN_OPTION if an unknown option was used
|
||||
* CURL_FORMADD_INCOMPLETE if the some FormInfo is not complete (or error)
|
||||
* CURL_FORMADD_MEMORY if a HttpPost struct cannot be allocated
|
||||
* CURL_FORMADD_MEMORY if an HttpPost struct cannot be allocated
|
||||
* CURL_FORMADD_MEMORY if some allocation for string copying failed.
|
||||
* CURL_FORMADD_ILLEGAL_ARRAY if an illegal option is used in an array
|
||||
*
|
||||
|
|
|
|||
|
|
@ -2091,7 +2091,7 @@ static CURLcode ftp_state_mdtm_resp(struct Curl_easy *data,
|
|||
|
||||
#ifdef CURL_FTP_HTTPSTYLE_HEAD
|
||||
/* If we asked for a time of the file and we actually got one as well,
|
||||
we "emulate" a HTTP-style header in our output. */
|
||||
we "emulate" an HTTP-style header in our output. */
|
||||
|
||||
if(data->set.opt_no_body &&
|
||||
ftpc->file &&
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
/*
|
||||
* Curl_pseudo_headers() creates the array with pseudo headers to be
|
||||
* used in a HTTP/2 or HTTP/3 request.
|
||||
* used in an HTTP/2 or HTTP/3 request.
|
||||
*/
|
||||
|
||||
#if defined(USE_NGHTTP2) || defined(ENABLE_QUIC)
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ struct h2h3req {
|
|||
|
||||
/*
|
||||
* Curl_pseudo_headers() creates the array with pseudo headers to be
|
||||
* used in a HTTP/2 or HTTP/3 request. Returns an allocated struct.
|
||||
* used in an HTTP/2 or HTTP/3 request. Returns an allocated struct.
|
||||
* Free it with Curl_pseudo_free().
|
||||
*/
|
||||
CURLcode Curl_pseudo_headers(struct Curl_easy *data,
|
||||
|
|
|
|||
20
lib/http.c
20
lib/http.c
|
|
@ -1241,7 +1241,7 @@ static size_t readmoredata(char *buffer,
|
|||
/* nothing to return */
|
||||
return 0;
|
||||
|
||||
/* make sure that a HTTP request is never sent away chunked! */
|
||||
/* make sure that an HTTP request is never sent away chunked! */
|
||||
data->req.forbidchunk = (http->sending == HTTPSEND_REQUEST)?TRUE:FALSE;
|
||||
|
||||
if(data->set.max_send_speed &&
|
||||
|
|
@ -3027,14 +3027,14 @@ CURLcode Curl_http_firstwrite(struct Curl_easy *data,
|
|||
if(data->set.timecondition && !data->state.range) {
|
||||
/* A time condition has been set AND no ranges have been requested. This
|
||||
seems to be what chapter 13.3.4 of RFC 2616 defines to be the correct
|
||||
action for a HTTP/1.1 client */
|
||||
action for an HTTP/1.1 client */
|
||||
|
||||
if(!Curl_meets_timecondition(data, k->timeofdoc)) {
|
||||
*done = TRUE;
|
||||
/* We're simulating a http 304 from server so we return
|
||||
/* We're simulating an HTTP 304 from server so we return
|
||||
what should have been returned from the server */
|
||||
data->info.httpcode = 304;
|
||||
infof(data, "Simulate a HTTP 304 response");
|
||||
infof(data, "Simulate an HTTP 304 response");
|
||||
/* we abort the transfer before it is completed == we ruin the
|
||||
re-use ability. Close the connection */
|
||||
streamclose(conn, "Simulated 304 handling");
|
||||
|
|
@ -3080,7 +3080,7 @@ CURLcode Curl_transferencode(struct Curl_easy *data)
|
|||
|
||||
#ifndef USE_HYPER
|
||||
/*
|
||||
* Curl_http() gets called from the generic multi_do() function when a HTTP
|
||||
* Curl_http() gets called from the generic multi_do() function when an HTTP
|
||||
* request is to be performed. This creates and sends a properly constructed
|
||||
* HTTP request.
|
||||
*/
|
||||
|
|
@ -3140,7 +3140,7 @@ CURLcode Curl_http(struct Curl_easy *data, bool *done)
|
|||
}
|
||||
}
|
||||
else {
|
||||
/* prepare for a http2 request */
|
||||
/* prepare for an http2 request */
|
||||
result = Curl_http2_setup(data, conn);
|
||||
if(result)
|
||||
return result;
|
||||
|
|
@ -3497,7 +3497,7 @@ CURLcode Curl_http_header(struct Curl_easy *data, struct connectdata *conn,
|
|||
STRCONST("Proxy-Connection:"),
|
||||
STRCONST("keep-alive"))) {
|
||||
/*
|
||||
* When a HTTP/1.0 reply comes when using a proxy, the
|
||||
* When an HTTP/1.0 reply comes when using a proxy, the
|
||||
* 'Proxy-Connection: keep-alive' line tells us the
|
||||
* connection will be kept alive for our pleasure.
|
||||
* Default action for 1.0 is to close.
|
||||
|
|
@ -3511,7 +3511,7 @@ CURLcode Curl_http_header(struct Curl_easy *data, struct connectdata *conn,
|
|||
STRCONST("Proxy-Connection:"),
|
||||
STRCONST("close"))) {
|
||||
/*
|
||||
* We get a HTTP/1.1 response from a proxy and it says it'll
|
||||
* We get an HTTP/1.1 response from a proxy and it says it'll
|
||||
* close down after this transfer.
|
||||
*/
|
||||
connclose(conn, "Proxy-Connection: asked to close after done");
|
||||
|
|
@ -3523,7 +3523,7 @@ CURLcode Curl_http_header(struct Curl_easy *data, struct connectdata *conn,
|
|||
STRCONST("Connection:"),
|
||||
STRCONST("keep-alive"))) {
|
||||
/*
|
||||
* A HTTP/1.0 reply with the 'Connection: keep-alive' line
|
||||
* An HTTP/1.0 reply with the 'Connection: keep-alive' line
|
||||
* tells us the connection will be kept alive for our
|
||||
* pleasure. Default action for 1.0 is to close.
|
||||
*
|
||||
|
|
@ -4012,7 +4012,7 @@ CURLcode Curl_http_readwrite_headers(struct Curl_easy *data,
|
|||
switch(k->httpcode) {
|
||||
case 100:
|
||||
/*
|
||||
* We have made a HTTP PUT or POST and this is 1.1-lingo
|
||||
* We have made an HTTP PUT or POST and this is 1.1-lingo
|
||||
* that tells us that the server is OK with this and ready
|
||||
* to receive the data.
|
||||
* However, we'll get more headers now so we must get
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ static int http2_getsock(struct Curl_easy *data,
|
|||
sock[0] = conn->sock[FIRSTSOCKET];
|
||||
|
||||
if(!(k->keepon & KEEP_RECV_PAUSE))
|
||||
/* Unless paused - in a HTTP/2 connection we can basically always get a
|
||||
/* Unless paused - in an HTTP/2 connection we can basically always get a
|
||||
frame so we should always be ready for one */
|
||||
bitmap |= GETSOCK_READSOCK(FIRSTSOCKET);
|
||||
|
||||
|
|
@ -1120,7 +1120,7 @@ static int on_header(nghttp2_session *session, const nghttp2_frame *frame,
|
|||
|
||||
/* nghttp2 guarantees that namelen > 0, and :status was already
|
||||
received, and this is not pseudo-header field . */
|
||||
/* convert to a HTTP1-style header */
|
||||
/* convert to an HTTP1-style header */
|
||||
result = Curl_dyn_addn(&stream->header_recvbuf, name, namelen);
|
||||
if(result)
|
||||
return NGHTTP2_ERR_CALLBACK_FAILURE;
|
||||
|
|
@ -1351,7 +1351,7 @@ static CURLcode http2_init(struct Curl_easy *data, struct connectdata *conn)
|
|||
}
|
||||
|
||||
/*
|
||||
* Append headers to ask for a HTTP1.1 to HTTP2 upgrade.
|
||||
* Append headers to ask for an HTTP1.1 to HTTP2 upgrade.
|
||||
*/
|
||||
CURLcode Curl_http2_request_upgrade(struct dynbuf *req,
|
||||
struct Curl_easy *data)
|
||||
|
|
@ -2307,7 +2307,7 @@ void Curl_http2_cleanup_dependencies(struct Curl_easy *data)
|
|||
Curl_http2_remove_child(data->set.stream_depends_on, data);
|
||||
}
|
||||
|
||||
/* Only call this function for a transfer that already got a HTTP/2
|
||||
/* Only call this function for a transfer that already got an HTTP/2
|
||||
CURLE_HTTP2_STREAM error! */
|
||||
bool Curl_h2_http_1_1_error(struct Curl_easy *data)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ CURLcode Curl_output_digest(struct Curl_easy *data,
|
|||
bool have_chlg;
|
||||
|
||||
/* Point to the address of the pointer that holds the string to send to the
|
||||
server, which is for a plain host or for a HTTP proxy */
|
||||
server, which is for a plain host or for an HTTP proxy */
|
||||
char **allocuserpwd;
|
||||
|
||||
/* Point to the name and password for this */
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ CURLcode Curl_output_ntlm(struct Curl_easy *data, bool proxy)
|
|||
struct bufref ntlmmsg;
|
||||
|
||||
/* point to the address of the pointer that holds the string to send to the
|
||||
server, which is for a plain host or for a HTTP proxy */
|
||||
server, which is for a plain host or for an HTTP proxy */
|
||||
char **allocuserpwd;
|
||||
|
||||
/* point to the username, password, service and host */
|
||||
|
|
|
|||
|
|
@ -1043,7 +1043,7 @@ void Curl_connect_free(struct Curl_easy *data)
|
|||
}
|
||||
|
||||
/*
|
||||
* Curl_proxyCONNECT() requires that we're connected to a HTTP proxy. This
|
||||
* Curl_proxyCONNECT() requires that we're connected to an HTTP proxy. This
|
||||
* function will issue the necessary commands to get a seamless tunnel through
|
||||
* this proxy. After that, the socket can be used just as a normal socket.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -598,7 +598,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
|
|||
|
||||
case CURLOPT_FOLLOWLOCATION:
|
||||
/*
|
||||
* Follow Location: header hints on a HTTP-server.
|
||||
* Follow Location: header hints on an HTTP-server.
|
||||
*/
|
||||
data->set.http_follow_location = (0 != va_arg(param, long)) ? TRUE : FALSE;
|
||||
break;
|
||||
|
|
@ -914,7 +914,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
|
|||
|
||||
case CURLOPT_EXPECT_100_TIMEOUT_MS:
|
||||
/*
|
||||
* Time to wait for a response to a HTTP request containing an
|
||||
* Time to wait for a response to an HTTP request containing an
|
||||
* Expect: 100-continue header before sending the data anyway.
|
||||
*/
|
||||
arg = va_arg(param, long);
|
||||
|
|
|
|||
|
|
@ -1511,7 +1511,7 @@ CURLcode Curl_pretransfer(struct Curl_easy *data)
|
|||
|
||||
/*
|
||||
* Set user-agent. Used for HTTP, but since we can attempt to tunnel
|
||||
* basically anything through a http proxy we can't limit this based on
|
||||
* basically anything through an HTTP proxy we can't limit this based on
|
||||
* protocol.
|
||||
*/
|
||||
if(data->set.str[STRING_USERAGENT]) {
|
||||
|
|
@ -1743,7 +1743,7 @@ CURLcode Curl_follow(struct Curl_easy *data,
|
|||
* differently based on exactly what return code there was.
|
||||
*
|
||||
* News from 7.10.6: we can also get here on a 401 or 407, in case we act on
|
||||
* a HTTP (proxy-) authentication scheme other than Basic.
|
||||
* an HTTP (proxy-) authentication scheme other than Basic.
|
||||
*/
|
||||
switch(data->info.httpcode) {
|
||||
/* 401 - Act on a WWW-Authenticate, we keep on moving and do the
|
||||
|
|
|
|||
16
lib/url.c
16
lib/url.c
|
|
@ -914,7 +914,7 @@ static int IsMultiplexingPossible(const struct Curl_easy *handle,
|
|||
{
|
||||
int avail = 0;
|
||||
|
||||
/* If a HTTP protocol and multiplexing is enabled */
|
||||
/* If an HTTP protocol and multiplexing is enabled */
|
||||
if((conn->handler->protocol & PROTO_FAMILY_HTTP) &&
|
||||
(!conn->bits.protoconnstart || !conn->bits.close)) {
|
||||
|
||||
|
|
@ -1197,7 +1197,7 @@ ConnectionExists(struct Curl_easy *data,
|
|||
size_t multiplexed = 0;
|
||||
|
||||
/*
|
||||
* Note that if we use a HTTP proxy in normal mode (no tunneling), we
|
||||
* Note that if we use an HTTP proxy in normal mode (no tunneling), we
|
||||
* check connections to that proxy and not to the actual remote server.
|
||||
*/
|
||||
check = curr->ptr;
|
||||
|
|
@ -1381,9 +1381,9 @@ ConnectionExists(struct Curl_easy *data,
|
|||
|| !needle->bits.httpproxy || needle->bits.tunnel_proxy
|
||||
#endif
|
||||
) {
|
||||
/* The requested connection does not use a HTTP proxy or it uses SSL or
|
||||
it is a non-SSL protocol tunneled or it is a non-SSL protocol which
|
||||
is allowed to be upgraded via TLS */
|
||||
/* The requested connection does not use an HTTP proxy or it uses SSL
|
||||
or it is a non-SSL protocol tunneled or it is a non-SSL protocol
|
||||
which is allowed to be upgraded via TLS */
|
||||
|
||||
if((strcasecompare(needle->handler->scheme, check->handler->scheme) ||
|
||||
(get_protocol_family(check->handler) ==
|
||||
|
|
@ -2704,7 +2704,7 @@ static CURLcode create_conn_helper_init_proxy(struct Curl_easy *data,
|
|||
|
||||
if(conn->http_proxy.host.rawalloc) {
|
||||
#ifdef CURL_DISABLE_HTTP
|
||||
/* asking for a HTTP proxy is a bit funny when HTTP is disabled... */
|
||||
/* asking for an HTTP proxy is a bit funny when HTTP is disabled... */
|
||||
result = CURLE_UNSUPPORTED_PROTOCOL;
|
||||
goto out;
|
||||
#else
|
||||
|
|
@ -2721,7 +2721,7 @@ static CURLcode create_conn_helper_init_proxy(struct Curl_easy *data,
|
|||
#endif
|
||||
}
|
||||
else {
|
||||
conn->bits.httpproxy = FALSE; /* not a HTTP proxy */
|
||||
conn->bits.httpproxy = FALSE; /* not an HTTP proxy */
|
||||
conn->bits.tunnel_proxy = FALSE; /* no tunneling if not HTTP */
|
||||
}
|
||||
|
||||
|
|
@ -3907,7 +3907,7 @@ static CURLcode create_conn(struct Curl_easy *data,
|
|||
|
||||
/* reuse_fresh is TRUE if we are told to use a new connection by force, but
|
||||
we only acknowledge this option if this is not a re-used connection
|
||||
already (which happens due to follow-location or during a HTTP
|
||||
already (which happens due to follow-location or during an HTTP
|
||||
authentication phase). CONNECT_ONLY transfers also refuse reuse. */
|
||||
if((data->set.reuse_fresh && !data->state.this_is_a_follow) ||
|
||||
data->set.connect_only)
|
||||
|
|
|
|||
|
|
@ -481,7 +481,7 @@ struct ConnectBits {
|
|||
#ifndef CURL_DISABLE_PROXY
|
||||
bool proxy_ssl_connected[2]; /* TRUE when SSL initialization for HTTPS proxy
|
||||
is complete */
|
||||
BIT(httpproxy); /* if set, this transfer is done through a http proxy */
|
||||
BIT(httpproxy); /* if set, this transfer is done through an HTTP proxy */
|
||||
BIT(socksproxy); /* if set, this transfer is done through a socks proxy */
|
||||
BIT(proxy_user_passwd); /* user+password for the proxy? */
|
||||
BIT(tunnel_proxy); /* if CONNECT is used to "tunnel" through the proxy.
|
||||
|
|
@ -920,8 +920,8 @@ struct connectdata {
|
|||
struct Curl_llist_element bundle_node; /* conncache */
|
||||
|
||||
/* chunk is for HTTP chunked encoding, but is in the general connectdata
|
||||
struct only because we can do just about any protocol through a HTTP proxy
|
||||
and a HTTP proxy may in fact respond using chunked encoding */
|
||||
struct only because we can do just about any protocol through an HTTP
|
||||
proxy and an HTTP proxy may in fact respond using chunked encoding */
|
||||
struct Curl_chunker chunk;
|
||||
|
||||
curl_closesocket_callback fclosesocket; /* function closing the socket(s) */
|
||||
|
|
@ -1860,7 +1860,7 @@ struct UserDefined {
|
|||
this session. They are STATIC, set by libcurl users or at least initially
|
||||
and they don't change during operations. */
|
||||
BIT(get_filetime); /* get the time and get of the remote file */
|
||||
BIT(tunnel_thru_httpproxy); /* use CONNECT through a HTTP proxy */
|
||||
BIT(tunnel_thru_httpproxy); /* use CONNECT through an HTTP proxy */
|
||||
BIT(prefer_ascii); /* ASCII rather than binary */
|
||||
BIT(remote_append); /* append, not overwrite, on upload */
|
||||
BIT(list_only); /* list directory */
|
||||
|
|
|
|||
|
|
@ -490,7 +490,7 @@ CURLcode Curl_auth_create_digest_md5_message(struct Curl_easy *data,
|
|||
/*
|
||||
* Curl_auth_decode_digest_http_message()
|
||||
*
|
||||
* This is used to decode a HTTP DIGEST challenge message into the separate
|
||||
* This is used to decode an HTTP DIGEST challenge message into the separate
|
||||
* attributes.
|
||||
*
|
||||
* Parameters:
|
||||
|
|
@ -650,7 +650,7 @@ CURLcode Curl_auth_decode_digest_http_message(const char *chlg,
|
|||
/*
|
||||
* auth_create_digest_http_message()
|
||||
*
|
||||
* This is used to generate a HTTP DIGEST response message ready for sending
|
||||
* This is used to generate an HTTP DIGEST response message ready for sending
|
||||
* to the recipient.
|
||||
*
|
||||
* Parameters:
|
||||
|
|
@ -926,7 +926,7 @@ static CURLcode auth_create_digest_http_message(
|
|||
/*
|
||||
* Curl_auth_create_digest_http_message()
|
||||
*
|
||||
* This is used to generate a HTTP DIGEST response message ready for sending
|
||||
* This is used to generate an HTTP DIGEST response message ready for sending
|
||||
* to the recipient.
|
||||
*
|
||||
* Parameters:
|
||||
|
|
|
|||
|
|
@ -307,7 +307,7 @@ CURLcode Curl_override_sspi_http_realm(const char *chlg,
|
|||
/*
|
||||
* Curl_auth_decode_digest_http_message()
|
||||
*
|
||||
* This is used to decode a HTTP DIGEST challenge message into the separate
|
||||
* This is used to decode an HTTP DIGEST challenge message into the separate
|
||||
* attributes.
|
||||
*
|
||||
* Parameters:
|
||||
|
|
@ -371,7 +371,7 @@ CURLcode Curl_auth_decode_digest_http_message(const char *chlg,
|
|||
/*
|
||||
* Curl_auth_create_digest_http_message()
|
||||
*
|
||||
* This is used to generate a HTTP DIGEST response message ready for sending
|
||||
* This is used to generate an HTTP DIGEST response message ready for sending
|
||||
* to the recipient.
|
||||
*
|
||||
* Parameters:
|
||||
|
|
|
|||
|
|
@ -104,11 +104,11 @@ CURLcode Curl_auth_create_digest_md5_message(struct Curl_easy *data,
|
|||
const char *service,
|
||||
struct bufref *out);
|
||||
|
||||
/* This is used to decode a HTTP DIGEST challenge message */
|
||||
/* This is used to decode an HTTP DIGEST challenge message */
|
||||
CURLcode Curl_auth_decode_digest_http_message(const char *chlg,
|
||||
struct digestdata *digest);
|
||||
|
||||
/* This is used to generate a HTTP DIGEST response message */
|
||||
/* This is used to generate an HTTP DIGEST response message */
|
||||
CURLcode Curl_auth_create_digest_http_message(struct Curl_easy *data,
|
||||
const char *userp,
|
||||
const char *passwdp,
|
||||
|
|
|
|||
|
|
@ -894,7 +894,7 @@ static int ng_getsock(struct Curl_easy *data, struct connectdata *conn,
|
|||
|
||||
socks[0] = conn->sock[FIRSTSOCKET];
|
||||
|
||||
/* in a HTTP/2 connection we can basically always get a frame so we should
|
||||
/* in an HTTP/2 connection we can basically always get a frame so we should
|
||||
always be ready for one */
|
||||
bitmap |= GETSOCK_READSOCK(FIRSTSOCKET);
|
||||
|
||||
|
|
@ -1170,7 +1170,7 @@ static int cb_h3_recv_header(nghttp3_conn *conn, int64_t stream_id,
|
|||
}
|
||||
}
|
||||
else {
|
||||
/* store as a HTTP1-style header */
|
||||
/* store as an HTTP1-style header */
|
||||
result = write_data(stream, h3name.base, h3name.len);
|
||||
if(result) {
|
||||
return -1;
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ static int quiche_getsock(struct Curl_easy *data,
|
|||
|
||||
socks[0] = conn->sock[FIRSTSOCKET];
|
||||
|
||||
/* in a HTTP/2 connection we can basically always get a frame so we should
|
||||
/* in an HTTP/2 connection we can basically always get a frame so we should
|
||||
always be ready for one */
|
||||
bitmap |= GETSOCK_READSOCK(FIRSTSOCKET);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue