1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-28 08:38:39 +02:00

Fixed broken build

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2016-06-09 09:08:29 -07:00
parent aea64ed5e5
commit a004403b11

View File

@ -3,12 +3,13 @@ package fasthttp
import (
"bufio"
"bytes"
"github.com/labstack/echo/engine/test"
"github.com/labstack/gommon/log"
fast "github.com/valyala/fasthttp"
"net"
"net/url"
"testing"
"github.com/labstack/echo/engine/test"
"github.com/labstack/gommon/log"
fast "github.com/valyala/fasthttp"
)
type fakeAddr struct {
@ -23,7 +24,7 @@ func (a fakeAddr) String() string {
func TestRequest(t *testing.T) {
var ctx fast.RequestCtx
url, _ := url.Parse("https://github.com/labstack/echo")
url, _ := url.Parse("http://github.com/labstack/echo")
ctx.Init(&fast.Request{}, fakeAddr{addr: "127.0.0.1"}, nil)
ctx.Request.Read(bufio.NewReader(bytes.NewBufferString(test.MultipartRequest)))
ctx.Request.SetRequestURI(url.String())