summaryrefslogtreecommitdiff
path: root/src/pkg/http/lex.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/http/lex.go')
-rw-r--r--src/pkg/http/lex.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/pkg/http/lex.go b/src/pkg/http/lex.go
index d25c4e403..93b67e701 100644
--- a/src/pkg/http/lex.go
+++ b/src/pkg/http/lex.go
@@ -10,20 +10,16 @@ func isSeparator(c byte) bool {
switch c {
case '(', ')', '<', '>', '@', ',', ';', ':', '\\', '"', '/', '[', ']', '?', '=', '{', '}', ' ', '\t':
return true
- default:
- return false
}
- panic()
+ return false
}
func isSpace(c byte) bool {
switch c {
case ' ', '\t', '\r', '\n':
return true
- default:
- return false
}
- panic()
+ return false
}
func isCtl(c byte) bool { return (0 <= c && c <= 31) || c == 127 }