one final bugfix for write_http.c
Merge pull request #8 from Stackdriver/write_http_fix

one final bugfix for write_http.c