You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
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
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:
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).
The text was updated successfully, but these errors were encountered: