aboutsummaryrefslogtreecommitdiff
path: root/server_test.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2023-02-11 13:59:44 +0200
committerGravatar GitHub <noreply@github.com> 2023-02-11 19:59:44 +0800
commit5147cecec7d2afedb510e9e5b7a3fb7f35022653 (patch)
treed8242937d34e26d87e407e5648661e6f02e19b1e /server_test.go
parentRefactor golangci-lint config and remove redundant nolints (#1486) (diff)
downloadfasthttp-5147cecec7d2afedb510e9e5b7a3fb7f35022653.tar.gz
fasthttp-5147cecec7d2afedb510e9e5b7a3fb7f35022653.tar.bz2
fasthttp-5147cecec7d2afedb510e9e5b7a3fb7f35022653.zip
docs: replace links to golang.org with go.dev (#1489)
- Replace https://godoc.org with https://pkg.go.dev. - Replace https://golang.org with https://go.dev. - Replace https://golang.org/pkg with https://pkg.go.dev. - Replace https://blog.golang.org with https://go.dev/blog. - Use https://pkg.go.dev/golang.org/x/net/http2 instead of non-existing https://http2.golang.org/. - Remove trailing slashes.
Diffstat (limited to 'server_test.go')
-rw-r--r--server_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/server_test.go b/server_test.go
index e639e48..eef3c2c 100644
--- a/server_test.go
+++ b/server_test.go
@@ -58,9 +58,9 @@ func TestServerCRNLAfterPost_Pipeline(t *testing.T) {
t.Fatalf("unexpected error: %v", err)
}
defer c.Close()
- if _, err = c.Write([]byte("POST / HTTP/1.1\r\nHost: golang.org\r\nContent-Length: 3\r\n\r\nABC" +
+ if _, err = c.Write([]byte("POST / HTTP/1.1\r\nHost: go.dev\r\nContent-Length: 3\r\n\r\nABC" +
"\r\n\r\n" + // <-- this stuff is bogus, but we'll ignore it
- "GET / HTTP/1.1\r\nHost: golang.org\r\n\r\n")); err != nil {
+ "GET / HTTP/1.1\r\nHost: go.dev\r\n\r\n")); err != nil {
t.Fatal(err)
}
@@ -104,7 +104,7 @@ func TestServerCRNLAfterPost(t *testing.T) {
t.Fatalf("unexpected error: %v", err)
}
defer c.Close()
- if _, err = c.Write([]byte("POST / HTTP/1.1\r\nHost: golang.org\r\nContent-Length: 3\r\n\r\nABC" +
+ if _, err = c.Write([]byte("POST / HTTP/1.1\r\nHost: go.dev\r\nContent-Length: 3\r\n\r\nABC" +
"\r\n\r\n", // <-- this stuff is bogus, but we'll ignore it
)); err != nil {
t.Fatal(err)