]> Nishi Git Mirror - libw3.git/commitdiff
format
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Fri, 26 Jan 2024 12:29:05 +0000 (12:29 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Fri, 26 Jan 2024 12:29:05 +0000 (12:29 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@91 d27a3e52-49c5-7645-884c-6793ebffc270

Library/HTTP.c

index 5a7848c05520831806173f5abfbce6ef21016836..b8103a47f2df74abdeeae759ed5558ff59e5760b 100644 (file)
@@ -2,8 +2,8 @@
 #include "W3HTTP.h"
 
 #include "W3Core.h"
-#include "W3Util.h"
 #include "W3URL.h"
+#include "W3Util.h"
 
 #include <stdbool.h>
 #include <stdio.h>
@@ -254,10 +254,10 @@ void __W3_HTTP_Request(struct W3* w3) {
        free(buf);
        if(chunklen != NULL) free(chunklen);
        if(chunk != NULL) free(chunk);
-       if(redir != NULL && __W3_Have_Prop(w3, "HTTP_REDIRECT")){
+       if(redir != NULL && __W3_Have_Prop(w3, "HTTP_REDIRECT")) {
                W3_Disconnect(w3);
                struct W3URL* u = W3_Parse_URL(redir);
-               if(u != NULL){
+               if(u != NULL) {
                        w3->sock = __W3_DNS_Connect(u->host, strcmp(u->protocol, "https") == 0 ? true : false, u->port
 #ifdef SSL_SUPPORT
                                                    ,