WSGI wsgi.input out of spec #23
cirospaciari
started this conversation in
Show and tell
Replies: 1 comment
-
This is now tracked in #24 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just to resume #22 discussion here:
@gi0baro actually the problem is HTTP_CONTENT_LENGTH should be CONTENT_LENGTH and HTTP_CONTENT_TYPE should be CONTENT_TYPE, i have this exactly same issue
@gi0baro another thing wsgi.input cannot be bytes, in my case I used BytesIO but is also wrong you can test with:
I fixed socketify by taking a look at https://github.com/benoitc/gunicorn/blob/2f9eb19b666868d324150072e7489788688c91cb/gunicorn/http/body.py
and I come up with https://github.com/cirospaciari/socketify.py/blob/392af9784d6a94403e58d2c02652aedc3379bf4c/src/socketify/wsgi.py#L25
Beta Was this translation helpful? Give feedback.
All reactions