aboutsummaryrefslogtreecommitdiff
path: root/src/lib/http
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-01-16 12:47:24 -0800
committerRuss Cox <rsc@golang.org>2009-01-16 12:47:24 -0800
commitaedfb397aee33a971a44c6959f4759b3bbea0022 (patch)
tree5190044ba6aa44f1eed79cfc98727a1456c0529b /src/lib/http
parent116a6e9c9cad2202d8dfabf9e59c949af998eead (diff)
downloadgo-aedfb397aee33a971a44c6959f4759b3bbea0022.tar.xz
casify misc
R=r DELTA=247 (20 added, 50 deleted, 177 changed) OCL=22951 CL=22955
Diffstat (limited to 'src/lib/http')
-rw-r--r--src/lib/http/request.go2
-rw-r--r--src/lib/http/url.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/http/request.go b/src/lib/http/request.go
index b6c84461bc..1335c48b42 100644
--- a/src/lib/http/request.go
+++ b/src/lib/http/request.go
@@ -190,7 +190,7 @@ export func ReadRequest(b *bufio.BufRead) (req *Request, err *os.Error) {
}
var f []string;
- if f = strings.split(s, " "); len(f) != 3 {
+ if f = strings.Split(s, " "); len(f) != 3 {
return nil, BadRequest
}
req.method, req.rawurl, req.proto = f[0], f[1], f[2];
diff --git a/src/lib/http/url.go b/src/lib/http/url.go
index 7aac1f27e5..865b7864a2 100644
--- a/src/lib/http/url.go
+++ b/src/lib/http/url.go
@@ -156,7 +156,7 @@ export func ParseURL(rawurl string) (url *URL, err *os.Error) {
}
// If there's no @, split's default is wrong. Check explicitly.
- if strings.index(url.authority, "@") < 0 {
+ if strings.Index(url.authority, "@") < 0 {
url.host = url.authority;
} else {
url.userinfo, url.host = split(url.authority, '@', true);