From aa3b9144de28c4ea91bc0193a4da814e32db99ee Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 25 Nov 2015 14:30:09 +0200 Subject: [PATCH] Fixed user-agent string in TestRequestString --- http_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_test.go b/http_test.go index 93df52f..a2b2cad 100644 --- a/http_test.go +++ b/http_test.go @@ -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) }