Allocate memory for correct type.
Merge pull request #20 from cww/issue_16_create_a_http_response_struct

Allocate memory for correct type.