+
Skip to content

Add mime-support package (/etc/mime.types) to enable mime-wise raw preview #1

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

Merged
merged 1 commit into from
Jul 29, 2019
Merged

Add mime-support package (/etc/mime.types) to enable mime-wise raw preview #1

merged 1 commit into from
Jul 29, 2019

Conversation

sakurai-youhei
Copy link
Contributor

Issue
The gitweb doesn't take care of MIME so that raw contents will be always given to browser as text; i.e. there's no possibility to host static web page.

Solution
Adding the mime-support package makes the gitweb MIME-wise so that raw contents (e.g. http://localhost:8080/?p=test.git;a=blob_plain;f=test.html;hb=HEAD) will be treated expectedly by browser.

@fraoustin fraoustin merged commit 46d6140 into fraoustin:master Jul 29, 2019
@fraoustin
Copy link
Owner

Thank you, i add your modification

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

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载