写了个简单的flask代理,打开百度没问题,打开Google却乱码了

求教是哪里的问题。源码如下:

#-*- coding:utf-8 -*-
import urllib
from flask import Flask

app = Flask(__name__)

@app.route('/<path:url>')
def Proxy(url):
    return (urllib.urlopen(url).read())

if __name__ == "__main__":
    app.debug = True
    app.run(port=5000)
4 comments