diff --git a/Makefile b/Makefile index 57784d0..4b8f778 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION = 1.2.0 +VERSION = 1.2.1 APP := http-file-server PACKAGES := $(shell go list -f {{.Dir}} ./...) diff --git a/README.md b/README.md index ce8ac17..71367df 100644 --- a/README.md +++ b/README.md @@ -60,14 +60,14 @@ Or [download a binary](https://github.com/sgreben/http-file-server/releases/late ```sh # Linux -curl -L https://github.com/sgreben/http-file-server/releases/download/1.2.0/http-file-server_1.2.0_linux_x86_64.tar.gz | tar xz +curl -L https://github.com/sgreben/http-file-server/releases/download/1.2.1/http-file-server_1.2.1_linux_x86_64.tar.gz | tar xz # OS X -curl -L https://github.com/sgreben/http-file-server/releases/download/1.2.0/http-file-server_1.2.0_osx_x86_64.tar.gz | tar xz +curl -L https://github.com/sgreben/http-file-server/releases/download/1.2.1/http-file-server_1.2.1_osx_x86_64.tar.gz | tar xz # Windows -curl -LO https://github.com/sgreben/http-file-server/releases/download/1.2.0/http-file-server_1.2.0_windows_x86_64.zip -unzip versions_1.2.0_windows_x86_64.zip +curl -LO https://github.com/sgreben/http-file-server/releases/download/1.2.1/http-file-server_1.2.1_windows_x86_64.zip +unzip versions_1.2.1_windows_x86_64.zip ``` ## Use it diff --git a/server.go b/server.go index 7cc6fa6..5cab7b7 100644 --- a/server.go +++ b/server.go @@ -69,7 +69,7 @@ func (f *fileHandler) serveDir(w http.ResponseWriter, r *http.Request, dirPath s w.Header().Set("Content-Type", "text/html; charset=utf-8") title, _ := filepath.Rel(f.path, dirPath) title = filepath.Join(filepath.Base(f.path), title) - fmt.Fprintf(w, "