]> Cypherpunks repositories - gostls13.git/commit
html/template: ensure that MIME type handling is case insensitive
authorSamuel Tan <samueltan@google.com>
Fri, 14 Apr 2017 16:50:00 +0000 (09:50 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 20 Apr 2017 18:11:25 +0000 (18:11 +0000)
commit4646a330905d8195e2664e6142832ad118f7bb03
tree04960d88949dd922acdb4642bba844dae08254a0
parent9248ff46a82aec26164a775f3eba43e3fcfb5651
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 <rsc@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/html/template/escape_test.go
src/html/template/js.go