toymaker.git

commit 0c47ff287b1b64c644256532368f9443995afdd5

Author: Adam <git@apiote.xyz>

change variable that checks for URL prefix

 server2.sh | 4 ++--


diff --git a/server2.sh b/server2.sh
index 11e18ce30d1f8b055d15ecc83dd48e77c1cb4428..fa22f7a46117cd972f921ac39dbb0f66ebd2a3cf 100755
--- a/server2.sh
+++ b/server2.sh
@@ -152,8 +152,8 @@ 	method="$1"
 	path="$2"
 	authorization="$3"
 	accept="$4"
-	toys=$(field "$path" 2)
-	if [ "$toys" != 'toys' ]
+	_toys=$(field "$path" 2)
+	if [ "$_toys" != 'toys' ]
 	then
 		respond404 "$path"
 	fi