Skip to content

Commit

Permalink
vhost: fix 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
fatedier committed Jun 26, 2017
1 parent 07fe05a commit b811a62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/vhost/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ Please try again later.</p>
func notFoundResponse() *http.Response {
header := make(http.Header)
header.Set("server", "frp/"+version.Full())
header.Set("Content-Type", "text/html")
res := &http.Response{
Status: "Not Found",
StatusCode: 400,
StatusCode: 404,
Proto: "HTTP/1.0",
ProtoMajor: 1,
ProtoMinor: 0,
Expand Down

0 comments on commit b811a62

Please sign in to comment.