commit 5dcc14f7655ffd16df31d6ffe60fd5c4242af13d Author: David Fifield david@bamsoftware.com Date: Tue Mar 13 09:21:34 2012 -0700
The MIME type is application/x-www-form-urlencoded.
Previously the "application/" was left off. --- facilitator.py | 2 +- swfcat.as | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/facilitator.py b/facilitator.py index f028ae3..3e7ca09 100755 --- a/facilitator.py +++ b/facilitator.py @@ -296,7 +296,7 @@ class Handler(BaseHTTPServer.BaseHTTPRequestHandler): # "server not found." client_str = "" self.send_response(200) - self.send_header("Content-Type", "x-www-form-urlencoded") + self.send_header("Content-Type", "application/x-www-form-urlencoded") self.send_header("Cache-Control", "no-cache") # Allow XMLHttpRequest from any domain. http://www.w3.org/TR/cors/. self.send_header("Access-Control-Allow-Origin", "*") diff --git a/swfcat.as b/swfcat.as index 76b35c4..7ec9a5b 100644 --- a/swfcat.as +++ b/swfcat.as @@ -260,7 +260,7 @@ package }
loader = new URLLoader(); - /* Get the x-www-form-urlencoded values. */ + /* Get the application/x-www-form-urlencoded values. */ loader.dataFormat = URLLoaderDataFormat.VARIABLES; loader.addEventListener(Event.COMPLETE, fac_complete); loader.addEventListener(IOErrorEvent.IO_ERROR, function (e:IOErrorEvent):void {
tor-commits@lists.torproject.org