Skip to content

Commit

Permalink
Add REQUEST_PATH and QUERY_STRING
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Jun 3, 2018
1 parent 8ab65dc commit d2facba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bashttpd
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ read -r REQUEST_METHOD REQUEST_URI REQUEST_HTTP_VERSION <<<"$line"
[ -n "$REQUEST_HTTP_VERSION" ] \
|| fail_with 400

REQUEST_PATH="${REQUEST_URI%%\?*}"
QUERY_STRING="${REQUEST_URI#*\?}"

declare -a REQUEST_HEADERS

while read -r line; do
Expand Down

0 comments on commit d2facba

Please sign in to comment.