summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjules <jules@okfoc.us>2014-12-01 07:25:42 -0500
committerjules <jules@okfoc.us>2014-12-01 07:25:42 -0500
commit7e7a03c09fb029d476735d5557838c0e97bbe579 (patch)
tree53f245eb991455a3b5a234b28e56d0c679bbb16f
parentc3919ec218c78d9a101fd772cbcec8318affa09e (diff)
parent89258b8979943f56e73adc134fabf5e54cbd3a26 (diff)
Merge branch 'master' of lmno:dither
-rwxr-xr-xcgi-bin/proxy2
1 files changed, 1 insertions, 1 deletions
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()