@@ -355,45 +355,6 @@ SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len)
355355 return 0 ;
356356}
357357
358- SAPI_API void sapi_activate_headers_only (void )
359- {
360- if (SG (request_info ).headers_read == 1 )
361- return ;
362- SG (request_info ).headers_read = 1 ;
363- zend_llist_init (& SG (sapi_headers ).headers , sizeof (sapi_header_struct ),
364- (void (* )(void * )) sapi_free_header , 0 );
365- SG (sapi_headers ).send_default_content_type = 1 ;
366-
367- /* SG(sapi_headers).http_response_code = 200; */
368- SG (sapi_headers ).http_status_line = NULL ;
369- SG (sapi_headers ).mimetype = NULL ;
370- SG (read_post_bytes ) = 0 ;
371- SG (request_info ).request_body = NULL ;
372- SG (request_info ).current_user = NULL ;
373- SG (request_info ).no_headers = 0 ;
374- SG (request_info ).post_entry = NULL ;
375- SG (global_request_time ) = 0 ;
376-
377- /*
378- * It's possible to override this general case in the activate() callback,
379- * if necessary.
380- */
381- if (SG (request_info ).request_method && !strcmp (SG (request_info ).request_method , "HEAD" )) {
382- SG (request_info ).headers_only = 1 ;
383- } else {
384- SG (request_info ).headers_only = 0 ;
385- }
386- if (SG (server_context )) {
387- SG (request_info ).cookie_data = sapi_module .read_cookies ();
388- if (sapi_module .activate ) {
389- sapi_module .activate ();
390- }
391- }
392- if (sapi_module .input_filter_init ) {
393- sapi_module .input_filter_init ();
394- }
395- }
396-
397358/*
398359 * Called from php_request_startup() for every request.
399360 */
0 commit comments