- fixed typo in month list: Okt should have been Oct
[m6w6/ext-http] / http_api.c
index 71112618763859b1e68722515dc34acf2ec29a20..34481459d38131ca72737d3468e98ee87eb7cd6a 100644 (file)
@@ -220,7 +220,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));
        }