Skip to content

Commit

Permalink
Allow arbitrary request methods
Browse files Browse the repository at this point in the history
POST, etc.
  • Loading branch information
TooTallNate committed Jun 3, 2018
1 parent a40a307 commit 2cea416
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions bashttpd
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,6 @@ read -r REQUEST_METHOD REQUEST_URI REQUEST_HTTP_VERSION <<<"$line"
[ -n "$REQUEST_HTTP_VERSION" ] \
|| fail_with 400

# Only GET is supported at this time
[ "$REQUEST_METHOD" = "GET" ] || fail_with 405

declare -a REQUEST_HEADERS

while read -r line; do
Expand Down

0 comments on commit 2cea416

Please sign in to comment.