aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/http
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2011-07-14 14:39:40 -0700
committerRobert Griesemer <gri@golang.org>2011-07-14 14:39:40 -0700
commit90564a92565877d19e456694ac4e2ef205720432 (patch)
tree8cb7e9ba936b3721ed7e3120e95fa419859ea20f /src/pkg/http
parent58e19aa4cb8656cdb757172647dfcb028029185e (diff)
downloadgo-90564a92565877d19e456694ac4e2ef205720432.tar.xz
go/printer: changed max. number of newlines from 3 to 2
manual changes in src/pkg/go/printer, src/cmd/gofix/signal_test.go (cd src/cmd/gofix/testdata; gofmt -w *.in *.out) (cd src/pkg/go/printer; gotest -update) gofmt -w misc src runs all tests R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4715041
Diffstat (limited to 'src/pkg/http')
-rw-r--r--src/pkg/http/cgi/host_test.go2
-rw-r--r--src/pkg/http/client.go1
-rw-r--r--src/pkg/http/triv.go2
-rw-r--r--src/pkg/http/url.go2
4 files changed, 0 insertions, 7 deletions
diff --git a/src/pkg/http/cgi/host_test.go b/src/pkg/http/cgi/host_test.go
index 250324a512..98a7ce5f26 100644
--- a/src/pkg/http/cgi/host_test.go
+++ b/src/pkg/http/cgi/host_test.go
@@ -85,7 +85,6 @@ func skipTest(t *testing.T) bool {
return false
}
-
func TestCGIBasicGet(t *testing.T) {
if skipTest(t) {
return
@@ -375,7 +374,6 @@ func TestCopyError(t *testing.T) {
}
}
-
func TestDirUnix(t *testing.T) {
if skipTest(t) || runtime.GOOS == "windows" {
return
diff --git a/src/pkg/http/client.go b/src/pkg/http/client.go
index 4f63b44f26..6ea7dee03f 100644
--- a/src/pkg/http/client.go
+++ b/src/pkg/http/client.go
@@ -85,7 +85,6 @@ func (c *Client) Do(req *Request) (resp *Response, err os.Error) {
return send(req, c.Transport)
}
-
// send issues an HTTP request. Caller should close resp.Body when done reading from it.
func send(req *Request, t RoundTripper) (resp *Response, err os.Error) {
if t == nil {
diff --git a/src/pkg/http/triv.go b/src/pkg/http/triv.go
index 54b12333f5..a8fd99aa4b 100644
--- a/src/pkg/http/triv.go
+++ b/src/pkg/http/triv.go
@@ -16,7 +16,6 @@ import (
"strconv"
)
-
// hello world, the web server
var helloRequests = expvar.NewInt("hello-requests")
@@ -126,7 +125,6 @@ func Logger(w http.ResponseWriter, req *http.Request) {
w.Write([]byte("oops"))
}
-
var webroot = flag.String("root", "/home/rsc", "web root directory")
func main() {
diff --git a/src/pkg/http/url.go b/src/pkg/http/url.go
index e934b27c4d..b38585ac20 100644
--- a/src/pkg/http/url.go
+++ b/src/pkg/http/url.go
@@ -56,7 +56,6 @@ const (
encodeOpaque
)
-
type URLEscapeError string
func (e URLEscapeError) String() string {
@@ -114,7 +113,6 @@ func shouldEscape(c byte, mode encoding) bool {
return true
}
-
// URLUnescape unescapes a string in ``URL encoded'' form,
// converting %AB into the byte 0xAB and '+' into ' ' (space).
// It returns an error if any % is not followed