File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,13 @@ package fasthttp
3
3
import (
4
4
"bufio"
5
5
"bytes"
6
- "github.com/labstack/echo/engine/test"
7
- "github.com/labstack/gommon/log"
8
- fast "github.com/valyala/fasthttp"
9
6
"net"
10
7
"net/url"
11
8
"testing"
9
+
10
+ "github.com/labstack/echo/engine/test"
11
+ "github.com/labstack/gommon/log"
12
+ fast "github.com/valyala/fasthttp"
12
13
)
13
14
14
15
type fakeAddr struct {
@@ -23,7 +24,7 @@ func (a fakeAddr) String() string {
23
24
func TestRequest (t * testing.T ) {
24
25
var ctx fast.RequestCtx
25
26
26
- url , _ := url .Parse ("https ://github.com/labstack/echo" )
27
+ url , _ := url .Parse ("http ://github.com/labstack/echo" )
27
28
ctx .Init (& fast.Request {}, fakeAddr {addr : "127.0.0.1" }, nil )
28
29
ctx .Request .Read (bufio .NewReader (bytes .NewBufferString (test .MultipartRequest )))
29
30
ctx .Request .SetRequestURI (url .String ())
You can’t perform that action at this time.
0 commit comments