aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-05-05 15:38:01 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-05-05 15:38:01 +0200
commit335dfa793c239283b0003d3f10739051c10ecb13 (patch)
tree6bd762494904dd941c6f8195aa776da14257e804
parent574aecee208f79d391f10d57520b3eb2fcf091e6 (diff)
http_perhapsrewind: remove HTTP check
No need to check for HTTP as this is now a HTTP-specific function
-rw-r--r--lib/http.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/http.c b/lib/http.c
index b05412c96..f6b6a3e14 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -345,10 +345,9 @@ static CURLcode http_perhapsrewind(struct connectdata *conn)
curl_off_t bytessent;
curl_off_t expectsend = -1; /* default is unknown */
- if(!http || !(conn->handler->protocol & CURLPROTO_HTTP))
- /* If this is still NULL, we have not reach very far and we can
- safely skip this rewinding stuff, or this is attempted to get used
- when HTTP isn't activated */
+ if(!http)
+ /* If this is still NULL, we have not reach very far and we can safely
+ skip this rewinding stuff */
return CURLE_OK;
switch(data->set.httpreq) {