diff options
author | Sascha Schumann <sas@php.net> | 2002-12-01 03:28:21 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2002-12-01 03:28:21 +0000 |
commit | 2b95b3c83ba2ab5c695b9bfef1054ec73b7b4ccc (patch) | |
tree | 7bb1e8868fa9f8cf1f44cd9e41887d20a5bdf0ca /main/SAPI.c | |
parent | b9447c2f497cc296a9f914ce0fd0433ae8eb9109 (diff) | |
download | php-git-2b95b3c83ba2ab5c695b9bfef1054ec73b7b4ccc.tar.gz |
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).
Diffstat (limited to 'main/SAPI.c')
-rw-r--r-- | main/SAPI.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index f77c14ee11..6ebd98e7ce 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -860,6 +860,15 @@ SAPI_API int sapi_get_fd(int *fd TSRMLS_DC) } } +SAPI_API int sapi_force_http_10(TSRMLS_D) +{ + if (sapi_module.force_http_10) { + return sapi_module.force_http_10(TSRMLS_C); + } else { + return -1; + } +} + /* * Local variables: * tab-width: 4 |