Prepare MapLibre Android 11.8.0 release (#3129)

This commit is contained in:
Bart Louwers
2025-01-09 22:42:58 +01:00
committed by GitHub
parent c1f76cff98
commit a27fbbabb0
4 changed files with 29 additions and 2 deletions

View File

@@ -161,7 +161,7 @@ void HTTPRequest::onResponse(jni::JNIEnv& env,
response.expires = util::parseTimestamp(jni::Make<std::string>(env, expires).c_str());
}
if (code == 200) {
if (code == 200 || code == 206) {
if (body) {
auto data = std::make_shared<std::string>(body.Length(env), char());
jni::GetArrayRegion(env, *body, 0, data->size(), reinterpret_cast<jbyte*>(&(*data)[0]));