Closed twaddington closed 11 years ago
Great catch. I'll address it. Yes, in the absence of a deserializer we'll pop out a string if any.
Addressed in 0254cf40d1a109d806023dd9c01cfb6faa5f0d3f.
Actually, that commit was bad. I like this one better c4bf8a18fd6ce9d5d8598a486ac0914b294c6bad.
Okay, yeah, that seems more correct.
There is some broken logic in
HootRequest.java
:https://github.com/twotoasters/hoot/blob/master/src/com/twotoasters/android/hoot/HootRequest.java#L333
I'm not sure how to best fix this yet. Perhaps if deserializer is null we could just automatically deserialize the message body to a string. Any ideas?
For HEAD and DELETE requests a deserializer won't be necessary since the response body is empty.