Handle headers inside ruby app. [2]