mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 09:57:01 +00:00
formatting
Former-commit-id: 037081db5d6d4434e873ca8b75334ee43e046b6a
This commit is contained in:
1
cache/browser_test.go
vendored
1
cache/browser_test.go
vendored
@@ -76,6 +76,7 @@ func TestCache304(t *testing.T) {
|
||||
r = e.GET("/").Expect().Status(httptest.StatusOK)
|
||||
r.Body().Equal("send")
|
||||
}
|
||||
|
||||
func TestETag(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
3
cache/cache_test.go
vendored
3
cache/cache_test.go
vendored
@@ -104,7 +104,6 @@ func TestClientNoCache(t *testing.T) {
|
||||
if err := runTest(e, "/", &n, expectedBodyStr, "/nocache"); err != nil {
|
||||
t.Fatalf(t.Name()+": %v", err)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func TestCache(t *testing.T) {
|
||||
@@ -136,7 +135,6 @@ func TestCache(t *testing.T) {
|
||||
if err := runTest(e, "/other", &n2, expectedBodyStr2, ""); err != nil {
|
||||
t.Fatalf(t.Name()+" other: %v", err)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func TestCacheHandlerParallel(t *testing.T) {
|
||||
@@ -185,7 +183,6 @@ func TestCacheValidator(t *testing.T) {
|
||||
atomic.AddUint32(&n, 1)
|
||||
ctx.Header("DONT", "DO not cache that response even if it was claimed")
|
||||
ctx.Write([]byte(expectedBodyStr))
|
||||
|
||||
})
|
||||
|
||||
e := httptest.New(t, app)
|
||||
|
||||
1
cache/client/handler.go
vendored
1
cache/client/handler.go
vendored
@@ -168,5 +168,4 @@ func (h *Handler) ServeHTTP(ctx context.Context) {
|
||||
// fmt.Printf("key: %s\n", key)
|
||||
// fmt.Printf("write content type: %s\n", response.Headers()["ContentType"])
|
||||
// fmt.Printf("write body len: %d\n", len(response.Body()))
|
||||
|
||||
}
|
||||
|
||||
1
cache/client/rule/chained.go
vendored
1
cache/client/rule/chained.go
vendored
@@ -36,7 +36,6 @@ func Chained(rule Rule, next ...Rule) Rule {
|
||||
}
|
||||
|
||||
return c
|
||||
|
||||
}
|
||||
|
||||
// Claim validator
|
||||
|
||||
1
cache/entry/entry.go
vendored
1
cache/entry/entry.go
vendored
@@ -101,7 +101,6 @@ func CopyHeaders(dst map[string][]string, src map[string][]string) {
|
||||
// to re-set the response with the new handler's content result
|
||||
func (e *Entry) Reset(statusCode int, headers map[string][]string,
|
||||
body []byte, lifeChanger LifeChanger) {
|
||||
|
||||
if e.response == nil {
|
||||
e.response = &Response{}
|
||||
}
|
||||
|
||||
1
cache/uri/uribuilder.go
vendored
1
cache/uri/uribuilder.go
vendored
@@ -71,7 +71,6 @@ func (r URIBuilder) String() string {
|
||||
}
|
||||
|
||||
func (r URIBuilder) build() string {
|
||||
|
||||
remoteURL := r.serverAddr
|
||||
|
||||
// fasthttp appends the "/" in the last uri (with query args also, that's probably a fasthttp bug which I'll fix later)
|
||||
|
||||
Reference in New Issue
Block a user