Skip to content

Commit

Permalink
not-found-body: return no new line on not found status
Browse files Browse the repository at this point in the history
  • Loading branch information
ninedraft committed Feb 11, 2022
1 parent 21a13ab commit 601d6d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gemax/server_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func Redirect(rw ResponseWriter, req IncomingRequest, target string, code status

// NotFound serves a not found error.
func NotFound(rw ResponseWriter, req IncomingRequest) {
rw.WriteStatus(status.NotFound, req.URL().String()+" is not found\r\n")
rw.WriteStatus(status.NotFound, req.URL().String()+" is not found")
}

// ServeContent creates a handler, which serves provided bytes as static page.
Expand Down

0 comments on commit 601d6d1

Please sign in to comment.