mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
Fixed a typo
This commit is contained in:
@@ -87,7 +87,7 @@ func ExampleServer() {
|
||||
func ExampleRequestCtx_Hijack() {
|
||||
// hijackHandler is called on hijacked connection.
|
||||
hijackHandler := func(c net.Conn) {
|
||||
fmt.Fprintf(c, "This message is sent over a hijacked connection to the client %d\n", c.RemoteAddr())
|
||||
fmt.Fprintf(c, "This message is sent over a hijacked connection to the client %s\n", c.RemoteAddr())
|
||||
fmt.Fprintf(c, "Send me something and I'll echo it to you\n")
|
||||
var buf [1]byte
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user