Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#23685 closed defect (fixed)

Could gitweb.tpo send Content-Type text/html for some files?

Reported by: ln5 Owned by: tpa
Priority: Medium Milestone:
Component: Internal Services/Tor Sysadmin Team Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

https://gitweb.torproject.org/company/policies.git/plain/corpdocs/index.html used to be served as text/html but is now text/plain. Used to as in March or April 2017.

Whatever changed, can we change it back?

Child Tickets

Change History (4)

comment:1 Changed 2 years ago by ln5

I've figured out that we run cgit https://git.zx2c4.com/cgit/about/ and that cgitrc according to its man page has both enable-html-serving and repo.enable-html-serving which looks promising.

One question is if we want mimetype handling, based on "file type" I assume. For my neads, something like Githubs README.md would work equally well. Haven't checked if that's a thing in cgit yet.

comment:2 Changed 2 years ago by Sebastian

Component: Internal Services/Service - gitInternal Services/Tor Sysadmin Team
Owner: changed from tor-gitadm to tpa

Please add the line

enable-html-serving=1

to /etc/cgitrc on vineale

comment:3 Changed 2 years ago by Sebastian

Resolution: fixed
Status: newclosed

thanks

comment:4 Changed 2 years ago by ln5

Woha, that was fast! Thanks Sebastian, thanks weasel.

Note: See TracTickets for help on using tickets.