Fixed user-agent string in TestRequestString

This commit is contained in:
Aliaksandr Valialkin
2015-11-25 14:30:09 +02:00
parent 0c6b0a01a1
commit aa3b9144de
+1 -1
View File
@@ -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)
}