Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: Assert with request in http_client_impl.h on iOS

$
0
0
Hi navysparks,

Glad you figured it out. Yes that assert was checking to see if the stream body was valid.

I can't quite tell exactly what type HTTPBody is, but you shouldn't need to explicitly sent the content length header here with calling set_body(...) it will automatically be take care of. You could collapse all those lines into:
req.set_body(HTTPBody);
Steve

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>