Reverted the removal of the setting of the header_in pointer (as it is not related to the headers_in field).
Moved the initialization of the content length and the keepalive to the initialization of the subrequest.