diff --git a/lib/http.c b/lib/http.c
index 3d9f2f2ebc12d8d8da4e8056b059234fbb7c2c8e..56d263b91f5194c63dfba4e25b707bcf6a781743 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -3158,7 +3158,7 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data,
       /* Find the first non-space letter */
       start = k->p + 18;
 
-      do {
+      for(;;) {
         /* skip whitespaces and commas */
         while(*start && (ISSPACE(*start) || (*start == ',')))
           start++;
@@ -3204,7 +3204,7 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data,
           /* unknown! */
           break;
 
-      } while(1);
+      }
 
     }
     else if(checkprefix("Content-Encoding:", k->p) &&