mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 10:27:45 +00:00 
			
		
		
		
	Reading several authenticate headers from http response
This commit is contained in:
		
							parent
							
								
									e4b57e8063
								
							
						
					
					
						commit
						f6ee1a15cb
					
				| @ -129,7 +129,7 @@ public class RemoteOperationResult implements Serializable { | |||||||
|     private Exception mException = null; |     private Exception mException = null; | ||||||
|     private ResultCode mCode = ResultCode.UNKNOWN_ERROR; |     private ResultCode mCode = ResultCode.UNKNOWN_ERROR; | ||||||
|     private String mRedirectedLocation; |     private String mRedirectedLocation; | ||||||
|     private String mAuthenticate; |     private ArrayList<String> mAuthenticate = new ArrayList<>(); | ||||||
|     private String mLastPermanentLocation = null; |     private String mLastPermanentLocation = null; | ||||||
| 
 | 
 | ||||||
|     private ArrayList<Object> mData; |     private ArrayList<Object> mData; | ||||||
| @ -321,8 +321,7 @@ public class RemoteOperationResult implements Serializable { | |||||||
|                     continue; |                     continue; | ||||||
|                 } |                 } | ||||||
|                 if ("www-authenticate".equals(current.getName().toLowerCase())) { |                 if ("www-authenticate".equals(current.getName().toLowerCase())) { | ||||||
|                     mAuthenticate = current.getValue(); |                     mAuthenticate.add(current.getValue().toLowerCase()); | ||||||
|                     break; |  | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
| @ -562,7 +561,7 @@ public class RemoteOperationResult implements Serializable { | |||||||
|         return (mRedirectedLocation != null && !(mRedirectedLocation.toLowerCase().startsWith("https://"))); |         return (mRedirectedLocation != null && !(mRedirectedLocation.toLowerCase().startsWith("https://"))); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     public String getAuthenticateHeader() { |     public ArrayList<String> getAuthenticateHeader() { | ||||||
|         return mAuthenticate; |         return mAuthenticate; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user