Set http_language in request data object to Accept-Language header.
This commit is contained in:
parent
57091f8943
commit
ff6b590148
1 changed files with 7 additions and 1 deletions
|
@ -256,7 +256,13 @@ public abstract class AbstractServletClient extends HttpServlet {
|
|||
if (browser != null) {
|
||||
reqtrans.set("http_browser", browser);
|
||||
}
|
||||
|
||||
|
||||
String language = request.getHeader("Accept-Language");
|
||||
|
||||
if (language != null) {
|
||||
reqtrans.set("http_language", language);
|
||||
}
|
||||
|
||||
String authorization = request.getHeader("authorization");
|
||||
|
||||
if (authorization != null) {
|
||||
|
|
Loading…
Add table
Reference in a new issue