-
Notifications
You must be signed in to change notification settings - Fork 310
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
header namespace gets lost with gunicorn/django #537
Comments
FWIW I dislike greenlet & friends. looks like the namespace autofill doesn't work. it depends on name which depends on how the code is imported. Probably has to do with greenlet magic. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
It seems the following code fails to parse
in_header
when used with gunicorn orDjangoApplication
, but works withwsgiref
:If you start it as a script, it returns:
However, starting the same script with
gunicorn spyne_header_test:app
(or wrapping it in aDjangoApplication
) leads to:Both tests use this as POST content (found in this old stackoverflow question):
The debug log gives some clues:
Working:
Failing:
Giving the derived
ComplexModel
an explicit__namespace__
attribute solves the issue.Am I maybe missing something obvious?
PS.: this has been tested on py2 and py3, with the same results. All tests with 2.12.14 and current master.
The text was updated successfully, but these errors were encountered: