From 89258b8979943f56e73adc134fabf5e54cbd3a26 Mon Sep 17 00:00:00 2001 From: Jules Date: Wed, 26 Nov 2014 23:57:03 -0500 Subject: dont btoa --- cgi-bin/proxy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cgi-bin/proxy') diff --git a/cgi-bin/proxy b/cgi-bin/proxy index df208a0..5e3539c 100755 --- a/cgi-bin/proxy +++ b/cgi-bin/proxy @@ -17,7 +17,7 @@ def proxy(url,ext,callback): print("Content-type: text/plain") print() sys.stdout.flush() - sys.stdout.buffer.write( bytes( callback + "(btoa(" + json.dumps( "".join(map(chr, base64.b64encode( req.read() )))) + "))" , 'utf-8')) + sys.stdout.buffer.write( bytes( callback + "(" + json.dumps( "".join(map(chr, base64.b64encode( req.read() )))) + ")" , 'utf-8')) else: print("Content-type: image/" + ext) print() -- cgit v1.2.3-70-g09d2