Hi Arne,
When the client sends a request which looks like this:
GET / HTTP/1.1
Company: Acme
The server you're using will always create the following environment:
{
'HTTP_COMPANY' => 'Acme',
…
}
If the client sends a request which looks like this:
GET / HTTP/1.1
Http-Company: Acme
Then the environment will look like this:
{
'HTTP_HTTP_COMPANY' => 'Acme',
…
}.
So yes: If you're using Rack directly, you will need to use HTTP_COMPANY on the server-side, and that will correspond to the "Company" header sent from the client.