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

Library/HTTP.c

index 13d3405e358cf14986e6c650ed3831e89faddbc1..c11cd95f7fc77d3775e4c7aa30ac9e4031ad3da9 100644 (file)
@@ -2,9 +2,9 @@
 #include "W3HTTP.h"
 
 #include "W3Core.h"
+#include "W3DNS.h"
 #include "W3URL.h"
 #include "W3Util.h"
-#include "W3DNS.h"
 
 #include <stdbool.h>
 #include <stdio.h>
@@ -272,7 +272,7 @@ void __W3_HTTP_Request(struct W3* w3) {
                        W3_Set_Path(w3, u->path);
                        w3->port = u->port;
                        W3_Free_URL(u);
-               }else if(redir[0] == '/'){
+               } else if(redir[0] == '/') {
                        w3->sock = __W3_DNS_Connect(w3->hostname, strcmp(w3->protocol, "https") == 0 ? true : false, w3->port
 #ifdef SSL_SUPPORT
                                                    ,