Skip to content

Commit

Permalink
fix: fix swap_url for http converted urls
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Jun 18, 2022
1 parent 3b6ff36 commit 2b672fa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion authcaptureproxy/auth_capture_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ async def _process_multipart(reader: MultipartReader, writer: MultipartWriter) -
site: str = str(
swap_url(
ignore_query=True,
old_url=old_url,
old_url=old_url.with_scheme("https"),
new_url=self._host_url.with_path("/"),
url=URL(str(request.url)).with_scheme("https"),
),
Expand Down
20 changes: 10 additions & 10 deletions cov.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" ?>
<coverage version="5.5" timestamp="1645774157816" lines-valid="684" lines-covered="285" line-rate="0.4167" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<coverage version="5.5" timestamp="1655536013523" lines-valid="684" lines-covered="292" line-rate="0.4269" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
<source>/Users/alandtse/auth_capture_proxy/authcaptureproxy</source>
</sources>
<packages>
<package name="." line-rate="0.393" branch-rate="0" complexity="0">
<package name="." line-rate="0.4052" branch-rate="0" complexity="0">
<classes>
<class name="__init__.py" filename="__init__.py" complexity="0" line-rate="0.7838" branch-rate="0">
<methods/>
Expand Down Expand Up @@ -456,7 +456,7 @@
<line number="7" hits="1"/>
</lines>
</class>
<class name="helper.py" filename="helper.py" complexity="0" line-rate="0.6" branch-rate="0">
<class name="helper.py" filename="helper.py" complexity="0" line-rate="0.6519" branch-rate="0">
<methods/>
<lines>
<line number="2" hits="1"/>
Expand Down Expand Up @@ -531,7 +531,7 @@
<line number="146" hits="1"/>
<line number="147" hits="1"/>
<line number="148" hits="1"/>
<line number="149" hits="0"/>
<line number="149" hits="1"/>
<line number="150" hits="1"/>
<line number="151" hits="1"/>
<line number="152" hits="1"/>
Expand All @@ -543,12 +543,12 @@
<line number="169" hits="1"/>
<line number="170" hits="1"/>
<line number="172" hits="1"/>
<line number="173" hits="0"/>
<line number="174" hits="0"/>
<line number="175" hits="0"/>
<line number="176" hits="0"/>
<line number="177" hits="0"/>
<line number="178" hits="0"/>
<line number="173" hits="1"/>
<line number="174" hits="1"/>
<line number="175" hits="1"/>
<line number="176" hits="1"/>
<line number="177" hits="1"/>
<line number="178" hits="1"/>
<line number="181" hits="1"/>
<line number="189" hits="1"/>
<line number="190" hits="1"/>
Expand Down

0 comments on commit 2b672fa

Please sign in to comment.