Opened 3 years ago

Closed 3 years ago

Last modified 3 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 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 3 years ago by ln5

I've figured out that we run cgit 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 would work equally well. Haven't checked if that's a thing in cgit yet.

comment:2 Changed 3 years ago by Sebastian

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

Please add the line


to /etc/cgitrc on vineale

comment:3 Changed 3 years ago by Sebastian

Resolution: fixed
Status: newclosed


comment:4 Changed 3 years ago by ln5

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

Note: See TracTickets for help on using tickets.