aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-06-05 08:23:50 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-06-05 08:23:50 +0000
commitecb2b95b1cef4c913fcf2b19e79e474c299f5a20 (patch)
tree0cf71ce34ddf30f7c80877e31c9df3c0aeab93c8 /lib
parent28b0b7316ddd0cc370f1e503066bb71f8fcb9b61 (diff)
struct HttpHeader changed to struct curl_slist
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c11
-rw-r--r--lib/urldata.h2
2 files changed, 7 insertions, 6 deletions
diff --git a/lib/http.c b/lib/http.c
index 0f41e7c09..b6b87f905 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -107,11 +107,11 @@
*/
bool static checkheaders(struct UrlData *data, char *thisheader)
{
- struct HttpHeader *head;
+ struct curl_slist *head;
size_t thislen = strlen(thisheader);
for(head = data->headers; head; head=head->next) {
- if(strnequal(head->header, thisheader, thislen)) {
+ if(strnequal(head->data, thisheader, thislen)) {
return TRUE;
}
}
@@ -280,6 +280,7 @@ CURLcode http(struct connectdata *conn)
http->p_accept = "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r\n";
do {
+ struct curl_slist *headers=data->headers;
sendf(data->firstsocket, data,
"%s " /* GET/HEAD/POST/PUT */
"%s HTTP/1.0\r\n" /* path */
@@ -362,11 +363,11 @@ CURLcode http(struct connectdata *conn)
}
}
- while(data->headers) {
+ while(headers) {
sendf(data->firstsocket, data,
"%s\015\012",
- data->headers->header);
- data->headers = data->headers->next;
+ headers->data);
+ headers = headers->next;
}
if(data->bits.http_post || data->bits.http_formpost) {
diff --git a/lib/urldata.h b/lib/urldata.h
index 5af199c2e..b5493a700 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -390,7 +390,7 @@ struct UrlData {
char *newurl; /* This can only be set if a Location: was in the
document headers */
- struct HttpHeader *headers; /* linked list of extra headers */
+ struct curl_slist *headers; /* linked list of extra headers */
struct HttpPost *httppost; /* linked list of POST data */
char *cert; /* PEM-formatted certificate */