diff --git a/index.html b/html/index.html similarity index 52% rename from index.html rename to html/index.html index f6ec441..12c8236 100644 --- a/index.html +++ b/html/index.html @@ -7,9 +7,11 @@
Paste:
- +
- + Show link +
+ diff --git a/main.go b/main.go index aa34a5f..2ab4a81 100644 --- a/main.go +++ b/main.go @@ -101,7 +101,7 @@ func handle_put_paste(w http.ResponseWriter, r *http.Request) { // and then we return the URL: log.Printf(" `-- saving paste to : %s", paste_dir + paste_name) hostname := r.Host - if show := req_body.Get("show"); show != "" { + if show := req_body.Get("show"); show != "1" { fmt.Fprintf(w, "%s/%s", hostname, paste_name) return } else{