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

[BUG] Can't send raw bytes #374

Closed
madhavajay opened this issue Jan 27, 2023 · 0 comments · Fixed by #375
Closed

[BUG] Can't send raw bytes #374

madhavajay opened this issue Jan 27, 2023 · 0 comments · Fixed by #375

Comments

@madhavajay
Copy link
Contributor

Description

I can't return bytes without getting an error that bytes can't be converted to PyString.
Digging into the code I think this is due to the struct Response using String instead of bytes.

Expected Behavior

Web servers should be able to return bytes.

Screenshots

Environment:

  • Host OS:
  • Browser:

[Optional] Additional Context

I figured i'd take a crack at it in a PR.


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

Successfully merging a pull request may close this issue.

1 participant