Commit db9909b0 authored by HERBERT Ryan's avatar HERBERT Ryan

fixed where proxy would crash if no session was sent in form

parent 48bf8a76
......@@ -13,7 +13,9 @@ def index():
def imgt():
if request.env.request_method == "POST":
payload = dict(request.post_vars)
del payload['Session']
if 'Session' in payload.keys():
del payload['Session']
response = requests.post("http://www.imgt.org/IMGT_vquest/vquest", data=payload)
if response.status_code == requests.codes.ok:
return response
......
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