diff --git a/README.md b/README.md index c274406..4dc32a4 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,6 @@ go get -v github.com/tools/godep Reference Web sites * - +* Icon from ## LICENSE This project is under license [MIT](LICENSE) diff --git a/httpstaticserver.go b/httpstaticserver.go index fc74ee1..000325f 100644 --- a/httpstaticserver.go +++ b/httpstaticserver.go @@ -44,7 +44,7 @@ func (s *HTTPStaticServer) hIndex(w http.ResponseWriter, r *http.Request) { func (s *HTTPStaticServer) hAssets(w http.ResponseWriter, r *http.Request) { path := mux.Vars(r)["path"] - w.Header().Set("Content-Type", "text/plain") // -_-! not working in chrome + // w.Header().Set("Content-Type", "text/plain") // -_-! not working in chrome http.ServeFile(w, r, filepath.Join("./res", path)) } diff --git a/res/favicon.png b/res/favicon.png new file mode 100644 index 0000000..c38a704 Binary files /dev/null and b/res/favicon.png differ diff --git a/res/index.tmpl b/res/index.tmpl index 6d6c778..113c6ea 100644 --- a/res/index.tmpl +++ b/res/index.tmpl @@ -1,13 +1,78 @@ + + gohttp server + + -

{{message}}

-

Explore

- - + +
+
+ + + + + + + + + + + +
NameSizeActions
Foo.txt10M + Download +
+
+
+ +

{{message}}

+

Explore

+
+
+ +
+
+ + + +