Update app.py

This commit is contained in:
Bing Chilling 2024-01-17 02:37:30 +00:00
parent 2ab4179d0e
commit c47fef51f8

2
app.py
View File

@ -246,7 +246,7 @@ async def general_error_view(e):
@proxified.register('/proxy/avatar/') @proxified.register('/proxy/avatar/')
class AvatarProxyHandler(AsgiproxifyHandler): class AvatarProxyHandler(AsgiproxifyHandler):
def make_request_url(self): def make_request_url(self):
return 'http://tb.himg.baidu.com/sys/portraith/item/' + self.scope['path'][14:] return 'http://himg.baidu.com/sys/portraith/item/' + self.scope['path'][14:]
@proxified.register('/proxy/pic/') @proxified.register('/proxy/pic/')
class PictureProxyHandler(AsgiproxifyHandler): class PictureProxyHandler(AsgiproxifyHandler):