Commit ba15ee49 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Spell 'not found' like GitLab does

parent c5e3517a
...@@ -106,7 +106,7 @@ func git_handler(w http.ResponseWriter, r *http.Request) { ...@@ -106,7 +106,7 @@ func git_handler(w http.ResponseWriter, r *http.Request) {
// Validate the path to the Git repository // Validate the path to the Git repository
found_path := path_match[1] found_path := path_match[1]
if !valid_path(found_path) { if !valid_path(found_path) {
http.Error(w, "Not found", 404) http.Error(w, "Not Found", 404)
return return
} }
...@@ -114,7 +114,7 @@ func git_handler(w http.ResponseWriter, r *http.Request) { ...@@ -114,7 +114,7 @@ func git_handler(w http.ResponseWriter, r *http.Request) {
return return
} }
} }
http.Error(w, "Not found", 404) http.Error(w, "Not Found", 404)
return return
} }
...@@ -183,7 +183,7 @@ func handle_get_info_refs(user string, _ string, path string, w http.ResponseWri ...@@ -183,7 +183,7 @@ func handle_get_info_refs(user string, _ string, path string, w http.ResponseWri
} }
case "": case "":
// The 'dumb' Git HTTP protocol is not supported // The 'dumb' Git HTTP protocol is not supported
http.Error(w, "Not found", 404) http.Error(w, "Not Found", 404)
return return
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment