Get header directly from request
Fix typos and identation