mirror of
https://github.com/golang/go
synced 2024-11-25 06:57:58 -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
|
// decoding error
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if 0x80 <= rune && rune <= 0x9F {
|
if 0x7F <= rune && rune <= 0x9F {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if rune < ' ' {
|
if rune < ' ' {
|
||||||
|
Loading…
Reference in New Issue
Block a user