From: paul Date: Thu, 24 Nov 2016 14:36:46 +0000 (+0000) Subject: fill REQUEST_URI variable X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=3cb6ff3e7cd50f6a6e22a9a43d5a75fc8aea1c3c;p=cgilite fill REQUEST_URI variable svn path=/trunk/; revision=43 --- diff --git a/server.sh b/server.sh index a4229b2..0cb43ff 100755 --- a/server.sh +++ b/server.sh @@ -34,6 +34,10 @@ sed -unr ' h s;^(GET|HEAD|POST) ([^\?]*)\??(.+)? (HTTP\/[0-9]\.[0-9])\r?$;export REQUEST_METHOD='\''\1'\'';p g + s;^(GET|HEAD|POST) ([^\?]*\??.*) (HTTP\/[0-9]\.[0-9])\r?$;\2; + s;'\'';'\''\\'\'''\'';g + s;^.*$;export REQUEST_URI='\''&'\'';p + g s;^(GET|HEAD|POST) ([^\?]*)\??(.+)? (HTTP\/[0-9]\.[0-9])\r?$;\2; s;'\'';'\''\\'\'''\'';g s;^.*$;export PATH_INFO='\''&'\'';p