seznam / fastrpc

FastRPC library
http://seznam.github.io/frpc
GNU Lesser General Public License v2.1
46 stars 46 forks source link

Support for application/x-base64-frpc in python handlers #77

Open komackaj opened 5 years ago

komackaj commented 5 years ago

I've just found out that at least Flask handler in python/fastrpc/handler/flask.py - probably the other two are affected too - doesn't support base64-encoded data (Content-Type :application/x-base64-frpc).

IMHO it should

ondras commented 5 years ago
  • encode output to base64

  • reply with corect ContentType header

Ideally, the output encoding shall be driven by the Accept request header (as opposed to Content-Type. A client implementation can, in theory, send base64 but accept binary.