From f66b0ee4dc0d7815c305b20f82092c29bfd904d4 Mon Sep 17 00:00:00 2001 From: Margaret Wasserman Date: Mon, 24 Nov 2014 14:30:18 -0500 Subject: [PATCH] Set content-type and clear content-length and content-md5 in output filter. --- mod_auth_gssweb.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mod_auth_gssweb.c b/mod_auth_gssweb.c index 22aa0df..17db8eb 100644 --- a/mod_auth_gssweb.c +++ b/mod_auth_gssweb.c @@ -303,6 +303,13 @@ static apr_status_t gssweb_authenticate_filter (ap_filter_t *f, bkt_eos = apr_bucket_eos_create(c->bucket_alloc); APR_BRIGADE_INSERT_TAIL (brig_out, bkt_eos); + /* set application type to 'application/json' */ + apr_table_set(r->headers_out, "Content-Type", "application/json"); + + /* clear content-length and MD5 checksum */ + apr_table_unset(r->headers_out, "Content-Length"); + apr_table_unset(r->headers_out, "Content-MD5"); + /* pass the brigade */ gss_log(APLOG_MARK, APLOG_DEBUG, 0, r, "gssweb_authenticate_filter: Sending: EOS"); if (0 != (ret = ap_pass_brigade(f->next, brig_out))) { -- 2.1.4