fix: patch requests prepare headers

pull/33/head
hunsh 2021-03-29 10:46:53 +08:00
parent 416a54a762
commit 61765b9529
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ exp3 = re.compile(r'^(?:https?://)?github\.com/.+?/.+?/(?:info|git-).*$')
exp4 = re.compile(r'^(?:https?://)?raw\.githubusercontent\.com/.+?/.+?/.+?/.+$')
exp5 = re.compile(r'^(?:https?://)?gist\.(?:githubusercontent|github)\.com/.+?/.+?/.+$')
requests.models.PreparedRequest.prepare_headers = lambda _, __: None
@app.route('/')
def index():