A note for Android developers - Cooper
, to correct let java.net.HttpURLConnection
handle cookies the Android app will have to add
let cookieManager = CookieManager( nil, CookiePolicy.ACCEPT_ALL )
CookieHandler.setDefault( cookieManager );
before using the Sugar.Http
.
This is not needed on Nougat
, where the policy is by default by NSMutableURLRequest
.