Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
komackaj opened this issue Sep 23, 2019 · 1 comment
Open

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

komackaj opened this issue Sep 23, 2019 · 1 comment

Comments

@komackaj
Copy link

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

  • detect encoded data from header
  • automatically decode it
  • encode output to base64
  • reply with corect ContentType header
@ondras
Copy link
Member

ondras commented Sep 23, 2019

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants