diff options
author | lassulus <lassulus@lassul.us> | 2021-08-31 20:26:53 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-08-31 20:26:53 +0200 |
commit | 34930b3db2d4386e4826ae782f0c24044e45b9c5 (patch) | |
tree | c592559cd4109a30084a075233e6915238ee8d1b /krebs/5pkgs/simple/htgen-cyberlocker/src | |
parent | 1ac0608fc53214897703e4a163186a4586c73bb6 (diff) |
htgen-cyberlocker: remove crud, exit after success POST
Diffstat (limited to 'krebs/5pkgs/simple/htgen-cyberlocker/src')
-rw-r--r-- | krebs/5pkgs/simple/htgen-cyberlocker/src/htgen-cyberlocker | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/krebs/5pkgs/simple/htgen-cyberlocker/src/htgen-cyberlocker b/krebs/5pkgs/simple/htgen-cyberlocker/src/htgen-cyberlocker index 6c3ed6552..ab9c4e8e3 100644 --- a/krebs/5pkgs/simple/htgen-cyberlocker/src/htgen-cyberlocker +++ b/krebs/5pkgs/simple/htgen-cyberlocker/src/htgen-cyberlocker @@ -57,10 +57,7 @@ case "$Method $path" in mkdir -v -p $STATEDIR/items >&2 cp -v $content $item >&2 - - scheme=${req_x_forwarded_proto-http} - link=$scheme://$req_host/$path - + exit ;; 'GET /'*) item=$STATEDIR/items/$(echo "$path" | jq -rR @uri) |