-
Notifications
You must be signed in to change notification settings - Fork 1
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
self.write not json serializing #5
Comments
Oh, and the traceback: |
Heh, I totally forgot about redmine. I'll switch this to there now... |
Revert that change! self.write has to handle non-JSON, because we don't always use it in the responses (as an example, /token/). You want self.output instead. |
oh, I see. There is code in there that's sending dics to self.write for some reason. |
Hm, I suppose that's a bug then. I may change dict.write in the future so that it automatically converts dicts to JSON, and writes a string through otherwise. In the meantime though, they're separate functions. |
My guess is that right now it will convert a dict but not a list, since that's what I'm passing through. |
self.write (in a handler), should take care of json serialization. In the case of 9a85201 however, it didn't work and I had to add it myself. It's not a huge deal for now.
The text was updated successfully, but these errors were encountered: