v0.2
This commit is contained in:
BIN
Binary file not shown.
@@ -18,7 +18,7 @@ class HTTPSMandatoryCase(BaseAPITestCase):
|
||||
|
||||
def modify_request_url(self, current_url: str) -> str:
|
||||
parsed_url = urllib.parse.urlparse(current_url)
|
||||
if parsed_url.scheme.lower() == "httpss":
|
||||
if parsed_url.scheme.lower() == "https":
|
||||
# 将 https 替换为 http
|
||||
modified_url = parsed_url._replace(scheme="http").geturl()
|
||||
self.logger.info(f"为进行HTTPS检查修改URL:原始 '{current_url}', 修改为 '{modified_url}'")
|
||||
|
||||
Reference in New Issue
Block a user