Open nbaity opened 6 years ago
I am using this library for setting up the local server. Sometimes the server adds the header along with my JSON body in the response and the last piece of JSON is not received in the client side...
NSString *jsonString = [[NSString alloc] initWithData:myResponse
encoding:NSStringEncodingConversionAllowLossy];
HTTPDataResponse *dataResponse = [[HTTPDataResponse alloc]initWithData:responseData]; dataResponse.contentType = contentType;
I am using this library for setting up the local server. Sometimes the server adds the header along with my JSON body in the response and the last piece of JSON is not received in the client side...
encoding:NSStringEncodingConversionAllowLossy];