mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
add a "force HTTP/1.0 response" facility to the SAPI layer
this is necessary, when you want to take over control of a connection and the web server is doing stupid things by default (like enabling chunked transfer encoding for no reason).
This commit is contained in:
parent
b9447c2f49
commit
2b95b3c83b
3 changed files with 25 additions and 2 deletions
|
@ -187,6 +187,7 @@ SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len TSRMLS_DC
|
|||
SAPI_API void sapi_activate_headers_only(TSRMLS_D);
|
||||
|
||||
SAPI_API int sapi_get_fd(int *fd TSRMLS_DC);
|
||||
SAPI_API int sapi_force_http_10(TSRMLS_D);
|
||||
|
||||
struct _sapi_module_struct {
|
||||
char *name;
|
||||
|
@ -228,7 +229,8 @@ struct _sapi_module_struct {
|
|||
int php_ini_ignore;
|
||||
|
||||
int (*get_fd)(int *fd TSRMLS_DC);
|
||||
|
||||
|
||||
int (*force_http_10)(TSRMLS_D);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue