#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-
#include "php.h"
+
#include "php_http.h"
#include "php_http_std_defs.h"
#include "php_http_api.h"
zval *len;
char *tmp;
- spprintf(&tmp, 0, "%lu", decoded_len);
+ spprintf(&tmp, 0, "%lu", (ulong) decoded_len);
MAKE_STD_ZVAL(len);
ZVAL_STRING(len, tmp, 0);
} else
/* no headers that indicate content length */
- if (1) {
+ if (HTTP_MSG_TYPE(RESPONSE, msg)) {
phpstr_from_string_ex(PHPSTR(msg), body, message + message_length - body);
+ } else {
+ continue_at = body;
}
/* check for following messages */