summaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-08 16:17:12 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-10 14:51:33 +0100
commit8b2dec6ab771c74815ae6d3358c8e58cf7815f23 (patch)
tree9146fb742b1fd4dd1b6c6e599fe230b0c83a3441 /lib/http.h
parent83f1ca69290f9d6198fe4013488408f94736c5dc (diff)
downloadcurl-8b2dec6ab771c74815ae6d3358c8e58cf7815f23.tar.gz
http: make 'authneg' also work for Hyper
When doing a request with a request body expecting a 401/407 back, that initial request is sent with a zero content-length. Test 177 and more. Closes #6424
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/http.h b/lib/http.h
index b5e6ae915..23add25dd 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -24,14 +24,12 @@
#include "curl_setup.h"
typedef enum {
- HTTPREQ_NONE, /* first in list */
HTTPREQ_GET,
HTTPREQ_POST,
HTTPREQ_POST_FORM, /* we make a difference internally */
HTTPREQ_POST_MIME, /* we make a difference internally */
HTTPREQ_PUT,
- HTTPREQ_HEAD,
- HTTPREQ_LAST /* last in list */
+ HTTPREQ_HEAD
} Curl_HttpReq;
#ifndef CURL_DISABLE_HTTP
@@ -295,6 +293,7 @@ CURLcode Curl_http_readwrite_headers(struct Curl_easy *data,
*
* @param conn all information about the current connection
* @param request pointer to the request keyword
+ * @param httpreq is the request type
* @param path pointer to the requested path
* @param proxytunnel boolean if this is the request setting up a "proxy
* tunnel"
@@ -304,6 +303,7 @@ CURLcode Curl_http_readwrite_headers(struct Curl_easy *data,
CURLcode
Curl_http_output_auth(struct connectdata *conn,
const char *request,
+ Curl_HttpReq httpreq,
const char *path,
bool proxytunnel); /* TRUE if this is the request setting
up the proxy tunnel */