Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for content-type when serving blobs in raw mode #571

Closed
vgheo opened this issue Mar 29, 2015 · 1 comment
Closed

Support for content-type when serving blobs in raw mode #571

vgheo opened this issue Mar 29, 2015 · 1 comment

Comments

@vgheo
Copy link

vgheo commented Mar 29, 2015

Use case :
A git repositiory is used to store static web contents (html, xhtml, xml+xsl).
Files contain links with relative paths within the same tree.
When the repo is browsed in gitlist at any commit:

  • a) the 'raw' URLs for html / xhtml/ xml+xsl files shall be properly presented by the browser
  • b) the relative links in the files shall resolve to respective files in the same commit

Currently all files in raw mode are served as text/plain, which prevents the desired behaviour.

Note that gitweb does generate proper mime types in raw mode. However, due to the URL structure, gitweb cannot support requirement b) above.

I have experimented by changing the gitlist BlobController.php to serve only text/xml, and results are positive. (see patch).

@vgheo vgheo changed the title Support for content-type when serving blobs served raw mode Support for content-type when serving blobs in raw mode Mar 30, 2015
@alehaa
Copy link
Contributor

alehaa commented Aug 27, 2017

Seems to be related to #451 and #452.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants