diff options
| -rw-r--r-- | html/index.html (renamed from index.html) | 6 | ||||
| -rw-r--r-- | main.go | 2 | 
2 files changed, 5 insertions, 3 deletions
| diff --git a/index.html b/html/index.html index f6ec441..12c8236 100644 --- a/index.html +++ b/html/index.html @@ -7,9 +7,11 @@        <br />        Paste:        <br /> -      <textarea name="paste" cols="80" rows="10"> </textarea> +      <textarea name="paste" cols="80" rows="10"></textarea>        <br /> -      <input type="submit" value="PasteMe!"> +      <input type="checkbox" name="show" value="1" checked />Show link +      <br /> +      <input type="submit" value="Binit!">      </form>    </body> @@ -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{ | 
