Skip to content

Commit

Permalink
Fix some benchmarks
Browse files Browse the repository at this point in the history
%q instead of %s made the request invalid and makes some of our
benchmarks hang.
  • Loading branch information
erikdubbelboer committed Aug 31, 2024
1 parent d5c7d89 commit d331a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server_timing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ var (
"Referer: http://example.com/aaa?bbb=ccc\r\nCookie: foo=bar; baz=baraz; aa=aakslsdweriwereowriewroire\r\n\r\n"
postRequest = fmt.Sprintf("POST /foobar?baz HTTP/1.1\r\nHost: google.com\r\nContent-Type: foo/bar\r\nContent-Length: %d\r\n"+
"User-Agent: Opera Chrome MSIE Firefox and other/1.2.34\r\nReferer: http://google.com/aaaa/bbb/ccc\r\n"+
"Cookie: foo=bar; baz=baraz; aa=aakslsdweriwereowriewroire\r\n\r\n%q",
"Cookie: foo=bar; baz=baraz; aa=aakslsdweriwereowriewroire\r\n\r\n%s",
len(fakeResponse), fakeResponse)
)

Expand Down

0 comments on commit d331a71

Please sign in to comment.