]> Nishi Git Mirror - libw3.git/commitdiff
Location header
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Tue, 13 Feb 2024 01:33:12 +0000 (01:33 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Tue, 13 Feb 2024 01:33:12 +0000 (01:33 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@203 d27a3e52-49c5-7645-884c-6793ebffc270

Library/Gemini.c
W3Version.h.p

index 0d6fa828f6a349e42f222c1b5dd181735a24f7db..9a96db5b1f12960080970323e05d834218c60cef 100644 (file)
@@ -42,6 +42,12 @@ void __W3_Gemini_Request(struct W3* w3) {
                                                                void (*func)(struct W3*, char*, char*) = (void (*)(struct W3*, char*, char*))funcptr;
                                                                func(w3, "Content-Type", meta);
                                                        }
+                                               }else if(atoi(code) >= 30 && atoi(code) < 40){
+                                                       void* funcptr = __W3_Get_Event(w3, "header");
+                                                       if(funcptr != NULL) {
+                                                               void (*func)(struct W3*, char*, char*) = (void (*)(struct W3*, char*, char*))funcptr;
+                                                               func(w3, "Location", meta);
+                                                       }
                                                }
                                        }
                                }else if(!bcode){
index 9ef884d0d28036c6a6ae0f9054025f4671be3c68..723af1d1190721c5239343f6e9d7748953dca6d6 100644 (file)
@@ -6,7 +6,7 @@
 extern "C" {
 #endif
 
-#define LIBW3_VERSION "2.5B" \
+#define LIBW3_VERSION "2.6" \
 SUFFIX
 
 #ifdef __cplusplus