Commit f3ad611f authored by Mikaël Salson's avatar Mikaël Salson Add another site to proxy

See vdj#893
parent 290193d7
......@@ -10,7 +10,7 @@ if request.env.http_origin:
def index():
return gluon.contrib.simplejson.dumps("index()")
def proxy_request(url, headers):
def proxy_request(url, headers={}):
if request.env.request_method == "POST":
payload = dict(request.post_vars)
......@@ -22,8 +22,10 @@ def proxy_request(url, headers):
return response
return gluon.contrib.simplejson.dumps("the site returned an invalid response")
return gluon.contrib.simplejson.dumps("improper method")
def imgt():
return proxy_request("")
def assign_subsets():
return proxy_request("",
{'referer': ""})
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