gitweb: improve blob_plain charset
commitbc311cda51a2b3c4b9b8fea5a257bca6c5b70c28
authorKyle J. McKay <mackyle@gmail.com>
Tue, 14 Apr 2015 02:46:46 +0000 (13 19:46 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 14 Apr 2015 02:46:46 +0000 (13 19:46 -0700)
treedf1bc4f628ea6d4abac58974f7cbed561fd2ab2b
parente69dbe151ac7f67a1c78c4ef954f75a17171eb25
gitweb: improve blob_plain charset

When gitweb returns blob_plain data it doesn't really
do a very good job returning the correct charset value.

Update the logic so that when returning a text/...
type the charset will be set correctly in most
cases based on the first portion of the content.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
gitweb/gitweb.perl