Merge pull request #1634 from BrandonArp/add_write_http_headers