projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Detect locale from Browser Environment
[citadel.git]
/
webcit
/
context_loop.c
diff --git
a/webcit/context_loop.c
b/webcit/context_loop.c
index 6673a4f679e9e20c81c323aa3bb49b9b5a65b707..aa2863895184b461f9a2caefb80adaacfbf90489 100644
(file)
--- a/
webcit/context_loop.c
+++ b/
webcit/context_loop.c
@@
-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
*/