@@ -2605,7 +2605,7 @@ ngx_http_link_func_read_data_from_server_via_ssl(SSL *ssl, ngx_conf_t *cf) {
2605
2605
}
2606
2606
}
2607
2607
done :
2608
- hhb = convert_to_http_header_body (final_buf , curr_size , cycle );
2608
+ hhb = convert_to_http_header_body (final_buf , curr_size , cf );
2609
2609
ngx_pfree (cf -> pool , final_buf );
2610
2610
return hhb ;
2611
2611
}
@@ -2616,10 +2616,10 @@ ngx_http_link_func_https_request(ngx_conf_t *cf, ngx_http_link_func_srv_conf_t*
2616
2616
ngx_http_link_func_http_header_body * hhb = NULL ;
2617
2617
SSL_CTX * ctx = NULL ;
2618
2618
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 );
2621
2621
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 );
2623
2623
ngx_pfree (cf -> pool , hhb -> header_content );
2624
2624
ngx_pfree (cf -> pool , hhb -> body_content );
2625
2625
ngx_pfree (cf -> pool , hhb );
0 commit comments