trim headers
use trimmed headers only during request processing
Merge pull request #127 from tnt-dev/master

trim headers