diff options
Diffstat (limited to 'src/pkg/http/requestwrite_test.go')
-rw-r--r-- | src/pkg/http/requestwrite_test.go | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/src/pkg/http/requestwrite_test.go b/src/pkg/http/requestwrite_test.go index f39e8a86d..916a18b94 100644 --- a/src/pkg/http/requestwrite_test.go +++ b/src/pkg/http/requestwrite_test.go @@ -21,33 +21,33 @@ var reqWriteTests = []reqWriteTest{ Method: "GET", RawURL: "http://www.techcrunch.com/", URL: &URL{ - Raw: "http://www.techcrunch.com/", - Scheme: "http", - RawPath: "//www.techcrunch.com/", + Raw: "http://www.techcrunch.com/", + Scheme: "http", + RawPath: "//www.techcrunch.com/", Authority: "www.techcrunch.com", - Userinfo: "", - Host: "www.techcrunch.com", - Path: "/", - RawQuery: "", - Fragment: "", + Userinfo: "", + Host: "www.techcrunch.com", + Path: "/", + RawQuery: "", + Fragment: "", }, - Proto: "HTTP/1.1", + Proto: "HTTP/1.1", ProtoMajor: 1, ProtoMinor: 1, Header: map[string]string{ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", - "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7", - "Accept-Encoding": "gzip,deflate", - "Accept-Language": "en-us,en;q=0.5", - "Keep-Alive": "300", + "Accept-Charset": "ISO-8859-1,utf-8;q=0.7,*;q=0.7", + "Accept-Encoding": "gzip,deflate", + "Accept-Language": "en-us,en;q=0.5", + "Keep-Alive": "300", "Proxy-Connection": "keep-alive", }, - Body: nil, - Close: false, - Host: "www.techcrunch.com", - Referer: "", + Body: nil, + Close: false, + Host: "www.techcrunch.com", + Referer: "", UserAgent: "Fake", - Form: map[string][]string{}, + Form: map[string][]string{}, }, "GET http://www.techcrunch.com/ HTTP/1.1\r\n" + @@ -66,13 +66,13 @@ var reqWriteTests = []reqWriteTest{ Method: "GET", URL: &URL{ Scheme: "http", - Host: "www.google.com", - Path: "/search", + Host: "www.google.com", + Path: "/search", }, - ProtoMajor: 1, - ProtoMinor: 1, - Header: map[string]string{}, - Body: nopCloser{bytes.NewBufferString("abcdef")}, + ProtoMajor: 1, + ProtoMinor: 1, + Header: map[string]string{}, + Body: nopCloser{bytes.NewBufferString("abcdef")}, TransferEncoding: []string{"chunked"}, }, @@ -88,14 +88,14 @@ var reqWriteTests = []reqWriteTest{ Method: "POST", URL: &URL{ Scheme: "http", - Host: "www.google.com", - Path: "/search", + Host: "www.google.com", + Path: "/search", }, - ProtoMajor: 1, - ProtoMinor: 1, - Header: map[string]string{}, - Close: true, - Body: nopCloser{bytes.NewBufferString("abcdef")}, + ProtoMajor: 1, + ProtoMinor: 1, + Header: map[string]string{}, + Close: true, + Body: nopCloser{bytes.NewBufferString("abcdef")}, TransferEncoding: []string{"chunked"}, }, @@ -111,7 +111,7 @@ var reqWriteTests = []reqWriteTest{ Request{ Method: "GET", RawURL: "/search", - Host: "www.google.com", + Host: "www.google.com", }, "GET /search HTTP/1.1\r\n" + |