Skip to content

Commit

Permalink
Release 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sgreben committed Dec 7, 2019
1 parent 255912c commit 12d3aa3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = 1.4.1
VERSION = 1.4.2

APP := http-file-server
PACKAGES := $(shell go list -f {{.Dir}} ./...)
Expand All @@ -13,7 +13,6 @@ clean:

# go get -u github.com/github/hub
release: README.md zip
git reset
git add README.md
git add Makefile
git commit -m "Release $(VERSION)" || true
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.1/http-file-server_1.4.1_linux_x86_64.tar.gz | tar xz
curl -L https://github.com/sgreben/http-file-server/releases/download/1.4.2/http-file-server_1.4.2_linux_x86_64.tar.gz | tar xz

# OS X
curl -L https://github.com/sgreben/http-file-server/releases/download/1.4.1/http-file-server_1.4.1_osx_x86_64.tar.gz | tar xz
curl -L https://github.com/sgreben/http-file-server/releases/download/1.4.2/http-file-server_1.4.2_osx_x86_64.tar.gz | tar xz

# Windows
curl -LO https://github.com/sgreben/http-file-server/releases/download/1.4.1/http-file-server_1.4.1_windows_x86_64.zip
unzip http-file-server_1.4.1_windows_x86_64.zip
curl -LO https://github.com/sgreben/http-file-server/releases/download/1.4.2/http-file-server_1.4.2_windows_x86_64.zip
unzip http-file-server_1.4.2_windows_x86_64.zip
```

## Use it
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (f *fileHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
f.serveZip(w, r, osPath)
case r.URL.Query().Get(tarGzKey) != "":
f.serveTarGz(w, r, osPath)
case info.IsDir() && r.Method == http.MethodPost:
case f.allowUpload && info.IsDir() && r.Method == http.MethodPost:
f.serveUploadTo(w, r, osPath)
case info.IsDir():
f.serveDir(w, r, osPath)
Expand Down

0 comments on commit 12d3aa3

Please sign in to comment.