aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-10-28 22:19:23 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-10-28 22:19:23 +0000
commitcdba92ac3c71e32fc1b1d0c7b3248ca3753c9a7e (patch)
tree0f2e194030277d4dbbc84ff0cf5f8712fa684fd3 /lib
parent6d28f92ffe8e057323cf461f6f5da1fa42f02c06 (diff)
when using checkprefix(), the first argument must be the prefix!
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 8fd421aae..7c9dda7c7 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -291,7 +291,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
k->hbuflen += nread;
if (!k->headerline && (k->hbuflen>5)) {
/* make a first check that this looks like a HTTP header */
- if(!checkprefix(data->state.headerbuff, "HTTP/")) {
+ if(!checkprefix("HTTP/", data->state.headerbuff)) {
/* this is not the beginning of a HTTP first header line */
k->header = FALSE;
k->badheader = HEADER_ALLBAD;
@@ -345,7 +345,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
if(!k->headerline) {
/* the first read header */
if((k->hbuflen>5) &&
- !checkprefix(data->state.headerbuff, "HTTP/")) {
+ !checkprefix("HTTP/", data->state.headerbuff)) {
/* this is not the beginning of a HTTP first header line */
k->header = FALSE;
k->badheader = HEADER_PARTHEADER;