Skip to content

Commit f3a57c7

Browse files
committed
feat(filter): support writing content type header to the response
1 parent e505a67 commit f3a57c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/redirectionio_protocol.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,10 @@ apr_status_t redirectionio_protocol_send_filter_headers(redirectionio_context *c
264264

265265
while (first_header != NULL) {
266266
if (first_header->name != NULL && first_header->value != NULL) {
267+
if (strcasecmp(first_header->name, "Content-Type") == 0) {
268+
ap_set_content_type(r, apr_pstrdup(r->pool, first_header->value));
269+
}
270+
267271
name_str = apr_pstrdup(r->pool, first_header->name);
268272
value_str = apr_pstrdup(r->pool, first_header->value);
269273

0 commit comments

Comments
 (0)