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:
parent
2157723124
commit
927779d1c2
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user