summaryrefslogtreecommitdiff
path: root/cgi-bin/proxy
diff options
context:
space:
mode:
authorJules <jules@asdf.us>2014-11-26 23:57:03 -0500
committerJules <jules@asdf.us>2014-11-26 23:57:03 -0500
commit89258b8979943f56e73adc134fabf5e54cbd3a26 (patch)
tree212cb905df353aa21dccc1f11fa9bfd9f4d1fb89 /cgi-bin/proxy
parent0c55852f1be83cc727b7c9c1560ccddd064f15ce (diff)
dont btoa
Diffstat (limited to 'cgi-bin/proxy')
-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()