fix minor issue
update response headers
correct the header format
do not copy headers to local buffer, use response instead