mirror of
https://github.com/golang/go
synced 2024-11-12 09:10:21 -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:
parent
add32466bf
commit
d7340d9c20
@ -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 < ' ' {
|
||||
|
Loading…
Reference in New Issue
Block a user