Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Commit

Permalink
fix: hostname on / GET
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Essia <leonardo@essia.dev>
  • Loading branch information
vaaleyard committed Aug 17, 2022
1 parent be527ac commit 64fdd38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gocatgo/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ func (app *App) Fetch(w http.ResponseWriter, r *http.Request) {
}

func (app *App) Home(w http.ResponseWriter, r *http.Request) {
home :=
home := fmt.Sprintf(
`
gocatgo: another cool pastebin.
* Usage:
# cat file.txt | curl -F "file=@-" gocatgo.sh
`
# cat file.txt | curl -F "file=@-" %s
`, app.Host)

fmt.Fprintf(w, "%s", home)
}
Expand Down

0 comments on commit 64fdd38

Please # to comment.