[Mono-list] Changing Response.Headers["Content-Type"] doesn't work ...?

Thomas Hansen thomas at magixilluminate.com
Wed Oct 1 08:44:28 UTC 2014


Howdy guys, first of all thx for the brilliant work you're doing on making
.Net available on Linux :)

Then over to something I think is a bug ...

I've got a Response.Filter stream where I am rendering my own custom
response back to the client in the form of JSON in ASP.NET. When I try to
set the Content-Type http header of my response though, they seem to
duplicate, and I get TWO Content-Type headers returned according to
Chromium ...?

I've tried to specifically remove the Content-Type, but it doesn't help,
obviously, since it seems to be adding the headers in the response after
the filter is closed ...

How can I make sure that I get the Content-Type in the HTTP headers that I
wish ...?

Preferably somewhere before my Response.Filter is being closed ...?


Kind regards,

.t

-- 
Thomas Hansen
CTO at magixilluminate
411 67 670
http://magixilluminate.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20141001/3ff43d7a/attachment.html>


More information about the Mono-list mailing list