From: Samuel Tan Date: Fri, 14 Apr 2017 16:50:00 +0000 (-0700) Subject: html/template: ensure that MIME type handling is case insensitive X-Git-Tag: go1.9beta1~594 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4646a330905d8195e2664e6142832ad118f7bb03;p=gostls13.git html/template: ensure that MIME type handling is case insensitive Handle MIME types found in the type attribute of the script element in a case insensitive way, as per Section 5.1 of RFC 2045. Fixes #19968 Change-Id: Ie1416178c937dcf2c96bcec4191cebe7c3477af8 Reviewed-on: https://go-review.googlesource.com/40702 Reviewed-by: Russ Cox Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- diff --git a/src/html/template/escape_test.go b/src/html/template/escape_test.go index 5dfb09b500..0a6a9e49c7 100644 --- a/src/html/template/escape_test.go +++ b/src/html/template/escape_test.go @@ -1399,6 +1399,11 @@ func TestEscapeText(t *testing.T) { `