Skip to content

Commit 9d0a00f

Browse files
committed
static constant rather than 200 direct
1 parent b8ba0e4 commit 9d0a00f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ sure you have the following installed:
8484

8585
### Prerequisites
8686

87-
- [Git][git]
88-
- [Go 1.11][golang]+
87+
* [Git][git]
88+
* [Go 1.11][golang]+
8989

9090
You will need to activate [Modules][modules] for your version of Go, generally
9191
by invoking `go` with the support `GO111MODULE=on` environment variable set.

internal/middleware/statuswriter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func (w *statusWriter) WriteHeader(status int) {
1414

1515
func (w *statusWriter) Write(b []byte) (int, error) {
1616
if w.status == 0 {
17-
w.status = 200
17+
w.status = http.StatusOK
1818
}
1919
return w.ResponseWriter.Write(b)
2020
}

0 commit comments

Comments
 (0)