Mercurial > p > roundup > code
view tools/base64 @ 5823:edd9e2c67785
Make REST-API updates work with WSGI
Now the Content-Type header is handled specially, it doesn't have a
HTTP_ prefix in WSGI. Also make some form lookups more robust in rest.
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Sun, 23 Jun 2019 14:46:05 +0200 |
| parents | c75defc1c2f0 |
| children | 9c3ec0a5c7fc |
line wrap: on
line source
#!/usr/bin/env python from __future__ import print_function import zlib, base64, sys print(base64.encodestring(zlib.compress(sys.stdin.read())))
