Imported Upstream version 2.9.5_rc1
[platform/upstream/libxml2.git] / nanohttp.c
index e109ad7..b911f9c 100644 (file)
@@ -1423,9 +1423,9 @@ retry:
     if (ctxt->port != 80) {
        /* reserve space for ':xxxxx', incl. potential proxy */
        if (proxy)
-           blen += 12;
+           blen += 17;
        else
-           blen += 6;
+           blen += 11;
     }
     bp = (char*)xmlMallocAtomic(blen);
     if ( bp == NULL ) {
@@ -1534,7 +1534,8 @@ retry:
        xmlGenericError(xmlGenericErrorContext,
                "\nRedirect to: %s\n", ctxt->location);
 #endif
-       while ( xmlNanoHTTPRecv(ctxt) > 0 ) ;
+       while ( xmlNanoHTTPRecv(ctxt) > 0 )
+            ;
         if (nbRedirects < XML_NANO_HTTP_MAX_REDIR) {
            nbRedirects++;
            if (redirURL != NULL)