aboutsummaryrefslogtreecommitdiff
path: root/merge-index.c
diff options
context:
space:
mode:
authorAlp Toker <alp@atoker.com>2006-07-11 11:19:34 +0100
committerJunio C Hamano <junkio@cox.net>2006-07-11 14:18:42 -0700
commitf6801d669ee11f0d5e67b2e86aec270d2a225224 (patch)
tree18bec3e6e68427152543254dce219ec180175d49 /merge-index.c
parented0e078f96a96ffe515899ef42051a568be4693a (diff)
downloadgit-f6801d669ee11f0d5e67b2e86aec270d2a225224.tar.gz
git-f6801d669ee11f0d5e67b2e86aec270d2a225224.tar.xz
gitweb: Send XHTML as 'application/xhtml+xml' where possible
"The 'text/html' media type [RFC2854] is primarily for HTML, not for XHTML. In general, this media type is NOT suitable for XHTML." This patch makes gitweb use content negotiation to conservatively send pages as Content-Type 'application/xhtml+xml' when the user agent explicitly claims to support it. It falls back to 'text/html' even if the user agent appears to implicitly support 'application/xhtml+xml' due to a '*/*' glob, working around an insidious bug in Internet Explorer where sending the correct media type prevents the page from being displayed. Signed-off-by: Alp Toker <alp@atoker.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'merge-index.c')
0 files changed, 0 insertions, 0 deletions