MIME/Content type issue when viewing raw html code

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Answered
    • None
    • Component/s: None

      I have an .html file committed into a Git repository, and according to FISHEYE_HOME/raw-mime.types when the file extension is html or htm the file mime type should be text/html.

      I want to see the raw content in FishEye by accessing http://localhost:8060/browse/~raw,r=HEAD/MyGitRepo/TEST.html, but the problem is that the Content-Type is text/plain.

      cURL also says that the the content type is text/plain:

      curl -I http://localhost:8060/browse/~raw,r=HEAD/MyGitRepo/TEST.html
      HTTP/1.1 200 OK
      X-AUSERNAME: anonymous
      Set-Cookie: crucibleprefs1="D%3D1426774272886";Path=/;Expires=Fri, 18-Mar-2016 14:11:12 GMT
      Expires: Thu, 01 Jan 1970 00:00:00 GMT
      Last-Modified: Thu, 19 Mar 2015 14:11:09 GMT
      Content-Disposition: inline
      Content-Type: text/plain;charset=UTF-8
      Content-Length: 99
      Server: Jetty(8.1.10.v20130312)
      

      Is there a way to specify the content type, such that, for example, when the file is HTML,
then FishEye would return the contents with a Content-Type set to text/html?

            Assignee:
            Unassigned
            Reporter:
            Felipe Kraemer
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: