diff options
Diffstat (limited to 'main/SAPI.c')
-rw-r--r-- | main/SAPI.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index 349a4f4fe6..1ab3cc7244 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -560,8 +560,9 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC) if (!STRCASECMP(header_line, "Content-Type")) { char *ptr = colon_offset+1, *mimetype = NULL, *newheader; size_t len = header_line_len - (ptr - header_line), newlen; - while (*ptr == ' ' && *ptr != '\0') { + while (*ptr == ' ') { ptr++; + len--; } #if HAVE_ZLIB if(!strncmp(ptr, "image/", sizeof("image/")-1)) { |