diff --git a/Makefile b/Makefile index d93f910..5d218bf 100755 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ build: build-all: make embed env GOOS=linux GOARCH=amd64 go build gossa.go - mv gossa gossa-linux + mv gossa gossa-linux64 env GOOS=linux GOARCH=arm go build gossa.go mv gossa gossa-linux-arm env GOOS=linux GOARCH=arm64 go build gossa.go @@ -20,7 +20,7 @@ build-all: clean: -rm gossa.go -rm gossa - -rm gossa-linux + -rm gossa-linux64 -rm gossa-linux-arm -rm gossa-linux-arm64 -rm gossa-mac diff --git a/main.go b/main.go index a6bcc03..7439e2f 100755 --- a/main.go +++ b/main.go @@ -156,7 +156,7 @@ func doContent(w http.ResponseWriter, r *http.Request) { } func upload(w http.ResponseWriter, r *http.Request) { - unescaped, _ := url.PathUnescape(r.Header.Get("bossa-path")) + unescaped, _ := url.PathUnescape(r.Header.Get("gossa-path")) fullPath, err := checkPath(unescaped) logVerb("Up", err, fullPath) @@ -232,7 +232,7 @@ func main() { } var hostString = *host + ":" + *port - fmt.Println("Bossa startig on directory " + initPath) + fmt.Println("Gossa startig on directory " + initPath) fmt.Println("Listening on http://" + hostString) var root = http.Dir(initPath) diff --git a/main_test.go b/main_test.go index 38612f7..2ce7f2f 100644 --- a/main_test.go +++ b/main_test.go @@ -35,7 +35,7 @@ func postDummyFile(t *testing.T, url string, path string) string { req, err := http.NewRequest("POST", url, body) dieMaybe(t, err) req.Header.Set("Content-Type", "multipart/form-data; boundary=----WebKitFormBoundarycCRIderiXxJWEUcU") - req.Header.Set("Bossa-Path", path) + req.Header.Set("Gossa-Path", path) resp, err := http.DefaultClient.Do(req) dieMaybe(t, err) diff --git a/readme.md b/readme.md index b19ba0a..b2b3906 100644 --- a/readme.md +++ b/readme.md @@ -3,7 +3,7 @@ gossa ![e](https://user-images.githubusercontent.com/760637/45410804-f2c00e80-b672-11e8-8c2b-51d7fc0915aa.gif) -[![Build Status](https://travis-ci.org/pldubouilh/bossa.svg?branch=master)](https://travis-ci.org/pldubouilh/bossa) +[![Build Status](https://travis-ci.org/pldubouilh/gossa.svg?branch=master)](https://travis-ci.org/pldubouilh/gossa) 🎶 A fast and simple webserver for your files. It's dependency-free and with under 250 lines for the server code, easily code-reviewable. diff --git a/script.js b/script.js index a28ee1c..24e1fc9 100755 --- a/script.js +++ b/script.js @@ -73,7 +73,7 @@ function postFile (file, path) { path = decodeURI(location.pathname).slice(0, -1) + path xhr.open('POST', window.location.origin + '/post') - xhr.setRequestHeader("bossa-path", encodeURIComponent(path)) + xhr.setRequestHeader("gossa-path", encodeURIComponent(path)) xhr.upload.id = newBar(path) const formData = new window.FormData()