* 'plain' mode content-type?
@ 2011-04-10 1:07 delan
2011-04-10 9:56 ` hjemli
0 siblings, 1 reply; 2+ messages in thread
From: delan @ 2011-04-10 1:07 UTC (permalink / raw)
Hi all,
I like using cgit very much and especially love the ability to browse
the tree with very natural URLs (unlike gitweb, which puts the tree path
in a query argument), which would allow me to have, say, a JavaScript
library with test pages that reference it relatively to work.
While /tree/ shows the source code in a friendly page, /plain/ sends the
file always as text/plain if it's text, and as application/octet-stream
if it isn't. Is there a way I can configure content-types that /plain/
sends, so, for example, HTML files are sent as text/html?
Thanks and best regards,
Delan Azabani
^ permalink raw reply [flat|nested] 2+ messages in thread
* 'plain' mode content-type?
2011-04-10 1:07 'plain' mode content-type? delan
@ 2011-04-10 9:56 ` hjemli
0 siblings, 0 replies; 2+ messages in thread
From: hjemli @ 2011-04-10 9:56 UTC (permalink / raw)
On Sun, Apr 10, 2011 at 03:07, Delan Azabani <delan at azabani.com> wrote:
> Is there a way I can configure content-types that /plain/ sends,
> so, for example, HTML files are sent as text/html?
Yes, the mimetype option is used to configure this. See
http://hjemli.net/git/cgit/tree/cgitrc.5.txt#n512 for usage examples.
--
larsh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-10 9:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-10 1:07 'plain' mode content-type? delan
2011-04-10 9:56 ` hjemli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).