projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
d67af7f
)
remove dead code
author
Michael Wallner
<mike@php.net>
Tue, 17 Feb 2015 14:09:21 +0000
(15:09 +0100)
committer
Michael Wallner
<mike@php.net>
Tue, 17 Feb 2015 14:09:21 +0000
(15:09 +0100)
php_http_message_body.c
patch
|
blob
|
history
diff --git
a/php_http_message_body.c
b/php_http_message_body.c
index ab1ec29bdc00b348cb360c5c5143f0fd1bf68c7a..de2693c3d1721eb9f95e7d1ad9f1cc4f416d3d23 100644
(file)
--- a/
php_http_message_body.c
+++ b/
php_http_message_body.c
@@
-486,11
+486,8
@@
static size_t splitbody(void *opaque, char *buf, size_t len TSRMLS_DC)
}
if (!first_boundary) {
}
if (!first_boundary) {
- int st;
/* this is not the first boundary, read rest of this message */
php_http_buffer_append(&arg->buf, buf, real_boundary - buf);
/* this is not the first boundary, read rest of this message */
php_http_buffer_append(&arg->buf, buf, real_boundary - buf);
- st=php_http_message_parser_parse(arg->parser, &arg->buf, 0, &arg->parser->message);
- //fprintf(stderr, "1 st=%d\n",st);
}
/* move after the boundary */
}
/* move after the boundary */
@@
-530,11
+527,9
@@
static size_t splitbody(void *opaque, char *buf, size_t len TSRMLS_DC)
/* let there be room for the next boundary */
if (len > arg->boundary_len) {
/* let there be room for the next boundary */
if (len > arg->boundary_len) {
- int st;
consumed += len - arg->boundary_len;
php_http_buffer_append(&arg->buf, buf, len - arg->boundary_len);
consumed += len - arg->boundary_len;
php_http_buffer_append(&arg->buf, buf, len - arg->boundary_len);
- st=php_http_message_parser_parse(arg->parser, &arg->buf, 0, &arg->parser->message);
- //fprintf(stderr, "2 st=%d\n", st);
+ php_http_message_parser_parse(arg->parser, &arg->buf, 0, &arg->parser->message);
}
arg->consumed += consumed;
}
arg->consumed += consumed;