X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_api.c;h=999826dfa7af7a6c89bc8bf72e27519ef1d0063c;hp=71112618763859b1e68722515dc34acf2ec29a20;hb=eccb12ef12282dbe2ffc47b61d5e62e02fcb071c;hpb=9c12b0d0fd94e5c026cc4d7e899cee0b61859d4f diff --git a/http_api.c b/http_api.c index 7111261..999826d 100644 --- a/http_api.c +++ b/http_api.c @@ -22,6 +22,7 @@ #include "SAPI.h" #include "ext/standard/url.h" +#include "ext/standard/head.h" #include "php_http.h" #include "php_http_std_defs.h" @@ -220,7 +221,7 @@ STATUS _http_exit_ex(int status, char *header, char *body, zend_bool send_header } } - if (body) { + if (php_header(TSRMLS_C) && body) { PHPWRITE(body, strlen(body)); }