Skip to content

Commit

Permalink
static constant rather than 200 direct
Browse files Browse the repository at this point in the history
  • Loading branch information
syntaqx committed Jan 29, 2019
1 parent b8ba0e4 commit 9d0a00f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ sure you have the following installed:

### Prerequisites

- [Git][git]
- [Go 1.11][golang]+
* [Git][git]
* [Go 1.11][golang]+

You will need to activate [Modules][modules] for your version of Go, generally
by invoking `go` with the support `GO111MODULE=on` environment variable set.
Expand Down
2 changes: 1 addition & 1 deletion internal/middleware/statuswriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func (w *statusWriter) WriteHeader(status int) {

func (w *statusWriter) Write(b []byte) (int, error) {
if w.status == 0 {
w.status = 200
w.status = http.StatusOK
}
return w.ResponseWriter.Write(b)
}

0 comments on commit 9d0a00f

Please sign in to comment.