* BIG rewrite of header handling and slimming of context_loop and session_loop; shuff...
[citadel.git] / webcit / gettext.c
index f3472b3617779f02e2826fb35dd62b38985b05a0..209162e8001aaf493cc2d752a54995e67b93bc1a 100644 (file)
@@ -396,8 +396,8 @@ SessionNewModule_GETTEXT
 {
 #ifdef ENABLE_NLS
        void *vLine;
-       
-       if (GetHash(WC->headers, HKEY("ACCEPT-LANGUAGE"), &vLine) && 
+       ////TODO: make me a header getter
+       if (GetHash(WC->Hdr->HTTPHeaders, HKEY("ACCEPT-LANGUAGE"), &vLine) && 
            (vLine != NULL)) {
                StrBuf *accept_language = (StrBuf*) vLine;
                httplang_to_locale(accept_language);