From 96c04d21e2c73167445f6062a020c8bff72f36c6 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 3 Apr 2014 17:05:08 -0400 Subject: [PATCH] Remove dead clause for 'keys' With the departure from shellinabox javascript code, remove the clause that serviced it. --- confluent/httpapi.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/confluent/httpapi.py b/confluent/httpapi.py index 93e6bce6..52375ce1 100644 --- a/confluent/httpapi.py +++ b/confluent/httpapi.py @@ -259,19 +259,6 @@ def resourcehandler(env, start_response): start_response('200 OK', headers) yield json.dumps({'session': querydict['session']}) return # client has requests to send or receive, not both... - elif 'keys' in querydict.keys(): - # client wishes to push some keys into the remote console - input = "" - for idx in xrange(0, len(querydict['keys']), 2): - input += chr(int(querydict['keys'][idx:idx+2], 16)) - sessid = querydict['session'] - if sessid not in consolesessions: - start_response('400 Expired Session', headers) - return - consolesessions[sessid]['expiry'] = time.time() + 90 - consolesessions[sessid]['session'].write(input) - start_response('200 OK', headers) - return # client has requests to send or receive, not both... else: # no keys, but a session, means it's hooking to receive data sessid = querydict['session'] if sessid not in consolesessions: