mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 23:59:57 +09:00
Update composer dependencies
This commit is contained in:
parent
49cc39e507
commit
cbd324c35b
428 changed files with 17862 additions and 5885 deletions
5
vendor/rmccue/requests/tests/utils/proxy/proxy.py
vendored
Executable file
5
vendor/rmccue/requests/tests/utils/proxy/proxy.py
vendored
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
def request(context, flow):
|
||||
flow.request.headers["x-requests-proxy"] = "http"
|
||||
|
||||
def response(context, flow):
|
||||
flow.response.headers[b"x-requests-proxied"] = "http"
|
||||
11
vendor/rmccue/requests/tests/utils/proxy/start.sh
vendored
Executable file
11
vendor/rmccue/requests/tests/utils/proxy/start.sh
vendored
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
PROXYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
PORT=${PORT:-9000}
|
||||
|
||||
PROXYBIN=${PROXYBIN:-"$(which mitmdump)"}
|
||||
ARGS="-s '$PROXYDIR/proxy.py' -p $PORT"
|
||||
if [[ ! -z "$AUTH" ]]; then
|
||||
ARGS="$ARGS --singleuser=$AUTH"
|
||||
fi
|
||||
PIDFILE="$PROXYDIR/proxy.pid"
|
||||
|
||||
start-stop-daemon --start --background --pidfile $PIDFILE --make-pidfile --exec $PROXYBIN -- $ARGS
|
||||
5
vendor/rmccue/requests/tests/utils/proxy/stop.sh
vendored
Executable file
5
vendor/rmccue/requests/tests/utils/proxy/stop.sh
vendored
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
PROXYDIR="$PWD/$(dirname $0)"
|
||||
|
||||
PIDFILE="$PROXYDIR/proxy.pid"
|
||||
|
||||
start-stop-daemon --stop --pidfile $PIDFILE --make-pidfile && rm $PROXYDIR/proxy.pid
|
||||
Loading…
Add table
Add a link
Reference in a new issue