From d19eb1a66d390820416f9533f0729aaa0785fce7 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 7 Dec 2005 18:06:25 +0000 Subject: [PATCH] * Per-session locale. For some reason it doesn't work well. --- webcit/context_loop.c | 3 --- webcit/webcit.c | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/webcit/context_loop.c b/webcit/context_loop.c index a2cfad4a8..b7fdf2a9c 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -434,9 +434,6 @@ void context_loop(int sock) TheSession->http_sock = sock; TheSession->lastreq = time(NULL); /* log */ TheSession->gzip_ok = gzip_ok; -#ifdef ENABLE_NLS - go_selected_language(); -#endif /* ENABLE_NLS */ session_loop(req); /* do transaction */ pthread_mutex_unlock(&TheSession->SessionMutex); /* unbind */ diff --git a/webcit/webcit.c b/webcit/webcit.c index 26a7c43f7..716275b31 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -924,9 +924,12 @@ void session_loop(struct httprequest *req) WC->upload_length = 0; WC->upload = NULL; WC->vars = NULL; - WC->is_wap = 0; +#ifdef ENABLE_NLS + go_selected_language(); +#endif /* ENABLE_NLS */ + hptr = req; if (hptr == NULL) return; -- 2.39.2