@@ -2605,7 +2605,7 @@ ngx_http_link_func_read_data_from_server_via_ssl(SSL *ssl, ngx_conf_t *cf) {
26052605 }
26062606 }
26072607done :
2608- hhb = convert_to_http_header_body (final_buf , curr_size , cycle );
2608+ hhb = convert_to_http_header_body (final_buf , curr_size , cf );
26092609 ngx_pfree (cf -> pool , final_buf );
26102610 return hhb ;
26112611}
@@ -2616,10 +2616,10 @@ ngx_http_link_func_https_request(ngx_conf_t *cf, ngx_http_link_func_srv_conf_t*
26162616 ngx_http_link_func_http_header_body * hhb = NULL ;
26172617 SSL_CTX * ctx = NULL ;
26182618 SSL * ssl = NULL ;
2619- if (ngx_http_link_func_connect_and_request_via_ssl (& sockfd , scf , & ctx , & ssl , cycle )) {
2620- hhb = ngx_http_link_func_read_data_from_server_via_ssl (ssl , cycle );
2619+ if (ngx_http_link_func_connect_and_request_via_ssl (& sockfd , scf , & ctx , & ssl , cf )) {
2620+ hhb = ngx_http_link_func_read_data_from_server_via_ssl (ssl , cf );
26212621 if (hhb ) {
2622- ngx_http_link_func_write_to_file ((char * )scf -> _libname .data , hhb -> body_content , hhb -> body_len , cycle );
2622+ ngx_http_link_func_write_to_file ((char * )scf -> _libname .data , hhb -> body_content , hhb -> body_len , cf );
26232623 ngx_pfree (cf -> pool , hhb -> header_content );
26242624 ngx_pfree (cf -> pool , hhb -> body_content );
26252625 ngx_pfree (cf -> pool , hhb );
0 commit comments