Fixed invalid http header format

This bug causes unexpected behavior on Safari,
especially for redirecting.
Merge pull request #85 from ledmonster/feature/fix-http-header

Feature/fix http header