Skip to content

Commit 90445f6

Browse files
committed
Fixed linter warning; document StaticHandler
1 parent a0338d9 commit 90445f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: cmd_serve.go

+6
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,12 @@ func NodeHandler(res http.ResponseWriter, req *http.Request) {
824824
}
825825
}
826826

827+
// StaticHandler is responsible for returning the contents of
828+
// all our embedded resources to HTTP-clients.
829+
//
830+
// It is configured as 404-handler, and can look for resources,
831+
// serving those that are present, and returning genuine 404
832+
// responses for requests that are entirely unknown.
827833
func StaticHandler(res http.ResponseWriter, req *http.Request) {
828834

829835
//

0 commit comments

Comments
 (0)