1
0
mirror of https://github.com/golang/go synced 2024-11-21 20:54:45 -07:00

http: include DEL in the test for unprintable chars

R=adg, rsc
CC=golang-dev
https://golang.org/cl/3631041
This commit is contained in:
Anthony Martin 2010-12-14 12:26:30 -05:00 committed by Russ Cox
parent add32466bf
commit d7340d9c20

View File

@ -27,7 +27,7 @@ func isText(b []byte) bool {
// decoding error // decoding error
return false return false
} }
if 0x80 <= rune && rune <= 0x9F { if 0x7F <= rune && rune <= 0x9F {
return false return false
} }
if rune < ' ' { if rune < ' ' {