From: Anthony Martin Date: Tue, 14 Dec 2010 17:26:30 +0000 (-0500) Subject: http: include DEL in the test for unprintable chars X-Git-Tag: weekly.2010-12-15~25 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d7340d9c2029cab7c61860542989aea52945526e;p=gostls13.git http: include DEL in the test for unprintable chars R=adg, rsc CC=golang-dev https://golang.org/cl/3631041 --- diff --git a/src/pkg/http/fs.go b/src/pkg/http/fs.go index 72db946dff..143a839a80 100644 --- a/src/pkg/http/fs.go +++ b/src/pkg/http/fs.go @@ -27,7 +27,7 @@ func isText(b []byte) bool { // decoding error return false } - if 0x80 <= rune && rune <= 0x9F { + if 0x7F <= rune && rune <= 0x9F { return false } if rune < ' ' {