Mercurial > p > roundup > code
annotate tools/base64 @ 4678:23de24f57566
issue2550749 - the xmlrpc interface is invoked on content type
and not url path. Sending any text/xml data to roundup results in
invoking the xml-rpc interface, but a REST or other interface could
also consume xml data and do something different. So require the use
of 'http(s)://.../xmlrpc' uri to trigger the xmlrpc interface.
| author | rouilj |
|---|---|
| date | Sun, 25 Nov 2012 18:24:28 -0500 |
| parents | 740102dfad1d |
| children | c75defc1c2f0 |
| rev | line source |
|---|---|
|
2181
740102dfad1d
favicon generation stuff
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
1 #!/usr/bin/env python |
|
740102dfad1d
favicon generation stuff
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
2 import zlib, base64, sys |
|
740102dfad1d
favicon generation stuff
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
3 print base64.encodestring(zlib.compress(sys.stdin.read())) |
