+ r[user_agent]
parent
0726625bde
commit
809633fe3b
|
@ -44,6 +44,9 @@ while read param; do
|
||||||
elif [[ -f "config/${r[host_portless]}" ]]; then
|
elif [[ -f "config/${r[host_portless]}" ]]; then
|
||||||
source "config/${r[host_portless]}"
|
source "config/${r[host_portless]}"
|
||||||
fi
|
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
|
elif [[ "$param_l" == *"upgrade:"* && $(sed 's/Upgrade: //i;s/\r//' <<< "$param") == "websocket" ]]; then
|
||||||
r[status]=101
|
r[status]=101
|
||||||
|
|
Loading…
Reference in New Issue