Setting response headers before calling WriteHeader.
Merge pull request #11 from alexandernyquist/master

Setting response headers before calling WriteHeader.