commit d77510152be2edf60572a83926b4d5daee6bd976 Author: Ximin Luo infinity0@gmx.com Date: Fri Oct 11 18:05:33 2013 +0100
- move FieldStorage() inside do_get() as it consumes stdin and messes with do_post() --- facilitator/facilitator.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/facilitator/facilitator.cgi b/facilitator/facilitator.cgi index 624580f..05286fd 100755 --- a/facilitator/facilitator.cgi +++ b/facilitator/facilitator.cgi @@ -31,7 +31,6 @@ path_info = os.environ.get("PATH_INFO") or "/"
if not method or not remote_addr[0]: exit_error(400) -fs = cgi.FieldStorage()
# Print the HEAD part of a URL-based registration response, or exit with an # error if appropriate. @@ -55,6 +54,7 @@ def do_get(): """Parses flashproxy polls. Example: GET /?r=1&client=7.1.43.21&client=1.2.3.4&transport=webrtc&transport=websocket """ + fs = cgi.FieldStorage()
path_parts = [x for x in path_info.split("/") if x] if len(path_parts) == 2 and path_parts[0] == "reg":
tor-commits@lists.torproject.org