Skip to content

Commit

Permalink
Updated links in README.md, addressed some goreportcard issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwhelpton committed Dec 31, 2017
1 parent bb26506 commit 26dca68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# fasthttp-routing

[![GoDoc](https://godoc.org/github.com/jackwhelpton/fasthttp-routing?status.png)](http://godoc.org/github.com/jackwhelpton/fasthttp-routing)
[![Build Status](https://travis-ci.org/go-ozzo/ozzo-routing.svg?branch=master)](https://travis-ci.org/go-ozzo/ozzo-routing)
[![Coverage Status](https://coveralls.io/repos/github/go-ozzo/ozzo-routing/badge.svg?branch=master)](https://coveralls.io/github/go-ozzo/ozzo-routing?branch=master)
[![Build Status](https://travis-ci.org/jackwhelpton/fasthttp-routing.svg?branch=master)](https://travis-ci.org/jackwhelpton/fasthttp-routing)
[![Coverage Status](https://coveralls.io/repos/github/jackwhelpton/fasthttp-routing/badge.svg?branch=master)](https://coveralls.io/github/jackwhelpton/fasthttp-routing?branch=master)
[![Go Report](https://goreportcard.com/badge/github.com/jackwhelpton/fasthttp-routing)](https://goreportcard.com/report/github.com/jackwhelpton/fasthttp-routing)

## Description
Expand Down
6 changes: 3 additions & 3 deletions slash/remover_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ func TestRemover(t *testing.T) {

ctx.Request.SetRequestURI("/")
ctx.Response.Reset()
err = h(c)
h(c)
assert.Equal(t, fasthttp.StatusOK, c.Response.StatusCode())
assert.Equal(t, "", string(c.Response.Header.Peek("Location")))

ctx.Request.SetRequestURI("/users")
ctx.Response.Reset()
err = h(c)
h(c)
assert.Equal(t, fasthttp.StatusOK, c.Response.StatusCode())
assert.Equal(t, "", string(c.Response.Header.Peek("Location")))

ctx.Request.Header.Reset()
ctx.Request.Header.SetMethod("POST")
ctx.Request.SetRequestURI("/users/")
ctx.Response.Reset()
err = h(c)
h(c)
assert.Equal(t, fasthttp.StatusTemporaryRedirect, c.Response.StatusCode())
assert.Equal(t, "/users", string(c.Response.Header.Peek("Location")))
}

0 comments on commit 26dca68

Please sign in to comment.