summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2017-06-30 23:46:11 +0100
committerKatolaZ <katolaz@freaknet.org>2017-06-30 23:46:11 +0100
commit32e86d1129f200c776f879da835a6659427ca707 (patch)
tree49ae2a83a6eb8070efe298e22971a66429fe2ade /main.go
parentee3dc59322eb3a366f3594261491381db5084110 (diff)
added 'show' option
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
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{