}
}
- if (body) {
+ if (php_header(TSRMLS_C) && body) {
PHPWRITE(body, strlen(body));
}
};
static const char *months[] = {
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
- "Jul", "Aug", "Sep", "Okt", "Nov", "Dec"
+ "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
};
enum assume_next {
DATE_MDAY,
header[header_len] = '\0';
snprintf(header, header_len, "%s: %s", name, value);
ret = http_send_header_string_ex(header, replace);
- efree(header);
+ if (sent_header) {
+ *sent_header = header;
+ } else {
+ efree(header);
+ }
return ret;
}
/* }}} */
return FAILURE;
}
- ret = http_send_header_ex("Last-Modified", lenof("Last-Modifed"), date, strlen(date), 1, sent_header);
+ ret = http_send_header_ex("Last-Modified", lenof("Last-Modified"), date, strlen(date), 1, sent_header);
efree(date);
/* remember */