]> Cypherpunks repositories - gostls13.git/commitdiff
http: include DEL in the test for unprintable chars
authorAnthony Martin <ality@pbrane.org>
Tue, 14 Dec 2010 17:26:30 +0000 (12:26 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 14 Dec 2010 17:26:30 +0000 (12:26 -0500)
R=adg, rsc
CC=golang-dev
https://golang.org/cl/3631041

src/pkg/http/fs.go

index 72db946dfffbbe5ccce2ac7fc9c917627a38390c..143a839a801014e8fa8f9ae1f256a9b794269448 100644 (file)
@@ -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 < ' ' {