Browse Source

bugfix: fixed build fail when enable ssi virtual handle

RCSN 2 năm trước cách đây
mục cha
commit
de63ee71d0
2 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 4 1
      inc/wn_module.h
  2. 1 1
      module/wn_module_ssi.c

+ 4 - 1
inc/wn_module.h

@@ -79,7 +79,10 @@ void webnet_cgi_set_root(const char* root);
 void webnet_auth_set(const char* path, const char* username_password);
 /* set directory alias */
 void webnet_alias_set(char* old_path, char* new_path);
-
+#if defined(WEBNET_USING_SSI_VIRTUAL_HANDLER)
+/* register ssi virtual event */
+void webnet_ssi_virtual_register(const char* name, void (*handler)(struct webnet_session* session));
+#endif
 /* upload module */
 struct webnet_module_upload_entry
 {

+ 1 - 1
module/wn_module_ssi.c

@@ -180,8 +180,8 @@ static void _webnet_ssi_dofile(struct webnet_session* session, int fd)
                 {
                     _webnet_ssi_sendfile(session, path);
                 }
-            }
 #endif
+            }
             else
             {
                 include_begin = strstr(ssi_begin, SSI_FILE_STRING);