Commit 19b55362 by jiaqiying

url.strip()

parent 1dc0b748
......@@ -9,6 +9,7 @@ from config import *
def request_main(url, headers, method, data, has_token=False):
"""封装requests的通用请求方法"""
res = None
url = url.strip()
def request_by_method(method, headers):
inner_res = None
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment