* move stuff from Hdr into substruct that may be easily wiped by memset 0'ing them
[citadel.git] / webcit / static.c
index 7e5580b273400c188ce13bbfedd959ee3f398041..ea308fc22a0d12caa6c3fa5e895317c305c2682a 100644 (file)
@@ -79,7 +79,7 @@ void output_static(const char *what)
 #ifndef TECH_PREVIEW
                lprintf(9, "output_static('%s')  %s\n", what, content_type);
 #endif
-               http_transmit_thing(content_type, 1);
+               http_transmit_thing(content_type, 2);
        }
        if (yesbstr("force_close_session")) {
                end_webcit_session();
@@ -184,7 +184,7 @@ void output_flat_static(void)
        void *vFile;
        StrBuf *File;
 
-       if (GetHash(StaticFilemappings[0], SKEY(WCC->Hdr->Handler->Name), &vFile) &&
+       if (GetHash(StaticFilemappings[0], SKEY(WCC->Hdr->HR.Handler->Name), &vFile) &&
            (vFile != NULL))
        {
                File = (StrBuf*) vFile;
@@ -200,7 +200,7 @@ void output_static_safe(HashList *DirList)
        void *vFile;
        StrBuf *File;
 
-       if (GetHash(DirList, SKEY(WCC->Hdr->ReqLine), &vFile) &&
+       if (GetHash(DirList, SKEY(WCC->Hdr->HR.ReqLine), &vFile) &&
            (vFile != NULL))
        {
                File = (StrBuf*) vFile;