diff options
| author | anon | 2025-07-05 13:57:43 +0200 |
|---|---|---|
| committer | anon | 2025-07-05 13:57:43 +0200 |
| commit | 2bceba36ef6924a3b83cba6155bf2c237a49c412 (patch) | |
| tree | 5e47b0af5a479331136c723abb184d06ecaf54b7 /upchud.tcl | |
| parent | aef6f78d010ac50325d6b7abf983d591845fc502 (diff) | |
| download | emil-up.chud.cyou-2bceba36ef6924a3b83cba6155bf2c237a49c412.tar.xz emil-up.chud.cyou-2bceba36ef6924a3b83cba6155bf2c237a49c412.tar.zst | |
fix simple responses
Diffstat (limited to 'upchud.tcl')
| -rwxr-xr-x | upchud.tcl | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -19,10 +19,14 @@ set max_save_attempts 20 # I have provided a few default behaviours, but you do you champ. proc send_success {upload_name} { proc simple {upload_name} { + set scheme $::env(REQUEST_SCHEME) + set host $::env(HTTP_HOST) + set url "$scheme://$host/$upload_name" + puts "Status: 200 OK\r" puts "Content-Type: text/plain\r" puts "\r" - puts "$upload_name" + puts "$url" } proc link {upload_name} { |
