Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Laura i Domiś
HTTP.sh
Commits
67921eba
Commit
67921eba
authored
Aug 01, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/server.sh
View file @
67921eba
...
...
@@ -101,7 +101,7 @@ while read -r param; do
for i in
$data
; do
name="
$(
sed
-E
's/\=(.*)$//'
<<<
"
$i
"
)
"
value="
$(
sed
"s/
$name
\=
//"
<<<
"
$i
"
)
"
pos
t_data[
$name
]="
$value
"
ge
t_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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment