Skip to content

Commit

Permalink
v0.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
ajthr committed Nov 9, 2023
1 parent 70b8679 commit 920cdd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package="github.com/ajthr/gserve"
package_split=(${package//\// })
package_name=${package_split[-1]}
package_version="v0.1"
package_version="v0.2"

platforms=("linux/amd64" "windows/amd64" "darwin/amd64")

Expand Down
4 changes: 2 additions & 2 deletions internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var f embed.FS

func indexHTMLTemplateHandler(response http.ResponseWriter, request *http.Request) {
relativePath := strings.TrimPrefix(request.URL.Path, "/")
log.Println(filepath.Clean(relativePath + "/"))
log.Println("GET " + filepath.Clean(relativePath + "/"))

path := filepath.Join(rootDir, relativePath)

Expand Down Expand Up @@ -101,7 +101,7 @@ func Init(cmd *cobra.Command, args []string) {
log.Fatal(err)
}

log.SetPrefix("HLS: ")
log.SetPrefix("gserve: ")
log.Printf("Serving %s on %s:%s\n", rootDir, GetOutboundIP(), port)

log.Fatal(http.ListenAndServe(":" + port, nil))
Expand Down

0 comments on commit 920cdd2

Please sign in to comment.