Skip to content

Commit f0ce1d1

Browse files
authored
Update proxy.py
1 parent 7eac582 commit f0ce1d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

proxy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def proxy_request(proto, host, file=""):
126126
redirect_path += "?" + redirect_parsed.query
127127

128128
munged_path = url_for(".proxy_request",
129+
proto=proto,
129130
host=redirect_host,
130131
file=redirect_path[1:])
131132

@@ -134,7 +135,7 @@ def proxy_request(proto, host, file=""):
134135

135136
# Rewrite URLs in the content to point to our URL schemt.method == " instead.
136137
# Ugly, but seems to mostly work.
137-
root = url_for(".proxy_request", host=host)
138+
root = url_for(".proxy_request", proto=proto, host=host)
138139
contents = resp.read()
139140

140141
# Restructing Contents.

0 commit comments

Comments
 (0)