- pass "Accept:" and "Accept-Language:" header to CGI scripts (Alina Friedrichsen)
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 1 Sep 2008 15:30:49 +0000 (15:30 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 1 Sep 2008 15:30:49 +0000 (15:30 -0000)
commitb424930e4ea971ff8675c30d5dc4445c173b2b1a
tree244487bdb81314807c70d699b90d6116060cb14e
parent2bdc99f600e0f6ee4b83dac3c80287f4e2d1bf96
- pass "Accept:" and "Accept-Language:" header to CGI scripts (Alina Friedrichsen)

Alina writes:
With this patch the BusyBox httpd pass the "Accept:" and
"Accept-Language:" header by the environment variables to the
CGI-Script, so this can make Content Negotiation to deliver the page in
the language, which was selected by the user in the browser settings,
and/or serve the XHTML page with the right MIME-Type
application/xhtml+xml to user agents which support it und text/html
which don't.

(Needed e.g. for OpenWrt LuCI.)

Signed-off-by: Alina Friedrichsen <x-alina at gmx dot net>
networking/httpd.c