mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-24 17:35:53 +03:00
Fixed user-agent string in TestRequestString
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ func TestRequestString(t *testing.T) {
|
||||
var r Request
|
||||
r.SetRequestURI("http://foobar.com/aaa")
|
||||
s := r.String()
|
||||
expectedS := "GET /aaa HTTP/1.1\r\nUser-Agent: fasthttp client\r\nHost: foobar.com\r\n\r\n"
|
||||
expectedS := "GET /aaa HTTP/1.1\r\nUser-Agent: fasthttp\r\nHost: foobar.com\r\n\r\n"
|
||||
if s != expectedS {
|
||||
t.Fatalf("unexpected request: %q. Expecting %q", s, expectedS)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user