Commit 67921eba authored by Dominika Liberda's avatar Dominika Liberda 💽
Browse files

* fix POST data not being read when using router

parent 61bd6b72
Pipeline #457 failed with stage
in 3 minutes and 15 seconds
......@@ -101,7 +101,7 @@ while read -r param; do
for i in $data; do
name="$(sed -E 's/\=(.*)$//' <<< "$i")"
value="$(sed "s/$name\=//" <<< "$i")"
post_data[$name]="$value"
get_data[$name]="$value"
done
fi
fi
......@@ -174,8 +174,7 @@ if [[ "${cfg[proxy]}" == true ]]; then
r[status]=211
fi
if [[ "${r[post]}" == true && "${r[status]}" == 200 ]]; then
if [[ "${r[post]}" == true && "${r[status]}" == 200 ]] || [[ "${r[post]}" == true && "${r[status]}" == 212 ]]; then
# This whole ordeal is here to prevent passing binary data as a variable.
# I could have done it as an array, but this solution works, and it's
# speedy enough so I don't care.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment