Skip to content

Commit

Permalink
fix a mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
pityonline committed Aug 13, 2018
1 parent 81625eb commit b3597f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ Remember we are deliberately committing sins, so an `if` statement based on the
```go
func (p *PlayerServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {

if r.Method==http.MethodPost {
if r.Method == http.MethodPost {
w.WriteHeader(http.StatusAccepted)
return
}
Expand Down

0 comments on commit b3597f2

Please sign in to comment.