* Detect locale from Browser Environment
[citadel.git] / webcit / context_loop.c
index 6673a4f679e9e20c81c323aa3bb49b9b5a65b707..aa2863895184b461f9a2caefb80adaacfbf90489 100644 (file)
@@ -290,6 +290,10 @@ void context_loop(int sock)
                        if_modified_since = httpdate_to_timestamp(&buf[19]);
                }
 
+               if (!strncasecmp(buf, "Accept-Language: ", 17)) {
+                       httplang_to_locale(&buf[17]);
+               }
+
                /*
                 * Read in the request
                 */