Merge pull request #4570 from milchakov/MAPSME_2722_android_cannot_authorize

[android] Fix authorization error
This commit is contained in:
alexzatsepin 2016-10-27 15:15:29 +03:00 committed by GitHub
commit fd55b49b4f

View file

@ -156,7 +156,7 @@ public final class HttpClient
if (headers != null && headers.containsKey("Set-Cookie"))
{
// Multiple Set-Cookie headers are normalized in C++ code.
android.text.TextUtils.join(", ", headers.get("Set-Cookie"));
p.cookies = android.text.TextUtils.join(", ", headers.get("Set-Cookie"));
}
// This implementation receives any data only if we have HTTP::OK (200).
if (p.httpResponseCode == HttpURLConnection.HTTP_OK)