MugunthKumar/MKNetworkKit — Issue #20: How to set postDataEncoding before initWithURLString
Author: jomnius
Created: 2012-01-03 06:01:03+00:00
State: open

When looking at MKNetworkOperation API (header files), I cannot find a way to set postDataEncoding before initWithURLString gets called. The problem is that initWithURLString contains switch (self.postDataEncoding), which I would like to go to case MKNKPostDataEncodingTypeJSON.

My quick fix was to hardocode self.postDataEncoding = MKNKPostDataEncodingTypeJSON; which obviously is not a correct solution.

I think I'm missing something obvious...