diff --git a/platform/android/MapLibreAndroid/src/cpp/http_file_source.cpp b/platform/android/MapLibreAndroid/src/cpp/http_file_source.cpp index 4bd80f1e78f..13bc72a8b86 100644 --- a/platform/android/MapLibreAndroid/src/cpp/http_file_source.cpp +++ b/platform/android/MapLibreAndroid/src/cpp/http_file_source.cpp @@ -161,7 +161,7 @@ void HTTPRequest::onResponse(jni::JNIEnv& env, response.expires = util::parseTimestamp(jni::Make(env, expires).c_str()); } - if (code == 200) { + if (code == 200 || code == 206) { if (body) { auto data = std::make_shared(body.Length(env), char()); jni::GetArrayRegion(env, *body, 0, data->size(), reinterpret_cast(&(*data)[0]));