+ r[user_agent]

merge-requests/2/head
Dominika Liberda 2021-02-02 16:14:39 +01:00
parent 0726625bde
commit 809633fe3b
1 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,9 @@ while read param; do
elif [[ -f "config/${r[host_portless]}" ]]; then
source "config/${r[host_portless]}"
fi
elif [[ "$param_l" == *"user-agent:"* ]]; then
r[user_agent]="$(sed 's/User-Agent: //i;s/\r//;s/\\//g' <<< "$param")"
elif [[ "$param_l" == *"upgrade:"* && $(sed 's/Upgrade: //i;s/\r//' <<< "$param") == "websocket" ]]; then
r[status]=101