117d116
< 
294c293,304
<               if(!checkprefix("HTTP/", data->state.headerbuff)) {
---
>                 if(!checkprefix("HTTP/", data->state.headerbuff)) {
>                     /* but is it an alias ? */
>                     bool isAlias = FALSE;
>                     struct curl_slist *head;
>                     for(head = data->set.http200aliases; head; head=head->next) {
>                         if (strnequal(head->data, data->state.headerbuff, min( k->hbuflen, strlen(head->data) ) )) {
>                             isAlias = TRUE;
>                             break;
>                         }
>                     }
>                     if (!isAlias) {
>                         
298a309
>                     }
348a360,370
>                 /* but is it an alias ? */
>                 bool isAlias = FALSE;
>                 struct curl_slist *head;
>                 for(head = data->set.http200aliases; head; head=head->next) {
>                     if (strnequal(head->data, data->state.headerbuff, min( k->hbuflen, strlen(head->data) ) )) {
>                         isAlias = TRUE;
>                         break;
>                     }
>                 }
>                 if (!isAlias) {
>                     
352a375
>                 }
474a498,513
> 
>               /* If user has set option HTTP200ALIASES, examine linked list for aliases.
>               */
>               if (!nc) {
>                   struct curl_slist *head;
>                   for(head = data->set.http200aliases; head; head=head->next) {
>                       if (strnequal(head->data, k->p, strlen(head->data) ) ) {
>                           nc = 1;
>                           k->httpcode = 200;
>                           k->httpversion = data->set.httpversion==CURL_HTTP_VERSION_1_0 ? 10 : 11;
>                           
>                           break;
>                       }
>                   }
>               }
>               

