summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-08-31 20:26:53 +0200
committerlassulus <lassulus@lassul.us>2021-08-31 20:26:53 +0200
commit34930b3db2d4386e4826ae782f0c24044e45b9c5 (patch)
treec592559cd4109a30084a075233e6915238ee8d1b /krebs/5pkgs/simple
parent1ac0608fc53214897703e4a163186a4586c73bb6 (diff)
htgen-cyberlocker: remove crud, exit after success POST
Diffstat (limited to 'krebs/5pkgs/simple')
-rw-r--r--krebs/5pkgs/simple/htgen-cyberlocker/src/htgen-cyberlocker5
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)