FastCGI can't see HTTP_ACCEPT_LANGUAGE
Original Reporter info from Mantis: ukolovda
-
Reporter name: Dmitry Ukolov
Original Reporter info from Mantis: ukolovda
- Reporter name: Dmitry Ukolov
Description:
In FastCGI web module ARequest.AcceptLanguage always is empty.
For fix change line 345 in packages/fcl-web/src/base/custfcgi.pp
Type THttpToCGI = array[1..CGIVarCount] of byte;
const HttpToCGI : THttpToCGI =
(
18, // 1 'HTTP_ACCEPT' - fieldAccept
19, // 2 'HTTP_ACCEPT_CHARSET' - fieldAcceptCharset
20, // 3 'HTTP_ACCEPT_ENCODING' - fieldAcceptEncoding
26, // 4 'HTTP_ACCEPT_LANGUAGE' - fieldAcceptLanguage
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ !!! Changed line above !!!
0, // 5
Please, add this fix to source.
Thanks.
Steps to reproduce:
Try read ARequest.AcceptLanguage.
Mantis conversion info:
- Mantis ID: 21210
- OS: CentOS
- OS Build: 6.2
- Platform: I386
- Version: 2.6.1
- Fixed in version: 3.0.0
- Fixed in revision: 20217 (#a8393291)
- Target version: 3.0.0