http_perhapsrewind: remove HTTP check
authorDaniel Stenberg <daniel@haxx.se>
Thu, 5 May 2011 13:38:01 +0000 (15:38 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 5 May 2011 13:38:01 +0000 (15:38 +0200)
No need to check for HTTP as this is now a HTTP-specific function

lib/http.c

index b05412c967e28d5b7d5e7412400833192cb5e43c..f6b6a3e14044eda7a6f78258be5cfb994444b277 100644 (file)
@@ -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) {