aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Martin <ality@pbrane.org>2010-12-14 12:26:30 -0500
committerRuss Cox <rsc@golang.org>2010-12-14 12:26:30 -0500
commitd7340d9c2029cab7c61860542989aea52945526e (patch)
tree0aea894fed08a91100dc546b27bf3cffb6791a80
parentadd32466bfc36ebac93cc527c90fc3a61dbac22e (diff)
downloadgo-d7340d9c2029cab7c61860542989aea52945526e.tar.gz
go-d7340d9c2029cab7c61860542989aea52945526e.zip
http: include DEL in the test for unprintable chars
R=adg, rsc CC=golang-dev https://golang.org/cl/3631041
-rw-r--r--src/pkg/http/fs.go2
1 files changed, 1 insertions, 1 deletions
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 < ' ' {