Ticket #4547 (new defect)

Opened 2 months ago

Last modified 2 months ago

[with patch, needs work] The Sage Notebook doesn't specify the Content-Type header in its responses

Reported by: mhansen Assigned to: boothby
Priority: major Milestone: sage-3.4
Component: notebook Keywords:
Cc:

Description

This causes Apache rewriting for example to just display plain text instead of HTML. This hasn't been an issue because browsers are relatively smart about dealing with unspecified Content-Types.

Attachments

http_headers.patch (19.6 kB) - added by mhansen on 11/19/2008 07:01:23 AM.

Change History

11/19/2008 07:01:23 AM changed by mhansen

  • attachment http_headers.patch added.

11/19/2008 07:02:45 AM changed by mhansen

  • summary changed from The Sage Notebook doesn't specify the Content-Type header in its responses to [with patch, needs work] The Sage Notebook doesn't specify the Content-Type header in its responses.

I attached a patch (which may or may not apply to the current version) which only fixes the problem for HTML pages. CSS, Javascript, etc. should also be handled.

11/19/2008 09:09:57 PM changed by was

This *has* been an issue. I have been working around by putting this in my httpd.conf:

<VirtualHost *>
        ServerName sagenb.org
        ProxyPass    / http://sagenb.org:8000/
        ProxyPassReverse / http://sagenb.org:8000/

        <Location />
           DefaultType text/html
        </Location>
</VirtualHost>