mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #41 from NativeScript/hdeshev/android-http-headers
Correctly resolve HTTP headers with multiple values on Android.
This commit is contained in:
@@ -138,13 +138,13 @@ public class Async
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < size - 1; i++)
|
for (Map.Entry<String, List<String>> entry: headers.entrySet()) {
|
||||||
{
|
String key = entry.getKey();
|
||||||
String key = connection.getHeaderFieldKey(i);
|
for (String value: entry.getValue()) {
|
||||||
String value = connection.getHeaderField(key);
|
|
||||||
this.headers.add(new KeyValuePair(key, value));
|
this.headers.add(new KeyValuePair(key, value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void readResponseStream(HttpURLConnection connection, Stack<Closeable> openedStreams, RequestOptions options) throws IOException
|
public void readResponseStream(HttpURLConnection connection, Stack<Closeable> openedStreams, RequestOptions options) throws IOException
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user