1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Case sensitive when reading HTTP-Headers

This commit is contained in:
masensio 2014-05-16 12:41:09 +02:00
parent 2157723124
commit 927779d1c2

View File

@ -152,11 +152,11 @@ public class RemoteOperationResult implements Serializable {
Header current;
for (int i=0; i<headers.length; i++) {
current = headers[i];
if ("Location".equals(current.getName())) {
if ("location".equals(current.getName().toLowerCase())) {
mRedirectedLocation = current.getValue();
break;
}
if ("WWW-Authenticate".equals(current.getName())) {
if ("www-authenticate".equals(current.getName().toLowerCase())) {
mAuthenticate = current.getValue();
break;
}