htgen-cyberlocker: remove crud, exit after success POST

This commit is contained in:
lassulus 2021-08-31 20:26:53 +02:00
parent 1ac0608fc5
commit 34930b3db2

View File

@ -57,10 +57,7 @@ case "$Method $path" in
mkdir -v -p $STATEDIR/items >&2 mkdir -v -p $STATEDIR/items >&2
cp -v $content $item >&2 cp -v $content $item >&2
exit
scheme=${req_x_forwarded_proto-http}
link=$scheme://$req_host/$path
;; ;;
'GET /'*) 'GET /'*)
item=$STATEDIR/items/$(echo "$path" | jq -rR @uri) item=$STATEDIR/items/$(echo "$path" | jq -rR @uri)