We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f173644 commit 6038616Copy full SHA for 6038616
src/main/java/com/microsoft/graph/http/HttpResponseHeadersHelper.java
@@ -4,6 +4,7 @@
4
import java.util.HashMap;
5
import java.util.List;
6
import java.util.Map;
7
+import java.util.TreeMap;
8
9
import okhttp3.Headers;
10
import okhttp3.Response;
@@ -16,7 +17,7 @@ public class HttpResponseHeadersHelper {
16
17
* @return the set of headers names and value
18
*/
19
public Map<String, String> getResponseHeadersAsMapStringString(final Response response) {
- final Map<String, String> headers = new HashMap<>();
20
+ final Map<String, String> headers = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
21
int index = 0;
22
Headers responseHeaders = response.headers();
23
while (index < responseHeaders.size()) {
0 commit comments