Retrieving header data using Sinatra

I am writing a web application for EVE online in Sinatra and want to get the header data.

In php, I can get data from a header variable with:

$_SERVER['HTTP_EVE_TRUSTED'] 

how can i do the same on the sinatra page?

+4
source share
1 answer

ENV ['HTTP_EVE_TRUSTED']

+3
source

Source: https://habr.com/ru/post/1305577/


All Articles