mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 10:49:04 +03:00
add HEAD Method support for SSO
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
0027df9d0c
commit
ebcbf0afac
1 changed files with 5 additions and 0 deletions
|
@ -50,6 +50,7 @@ import org.apache.commons.httpclient.HttpState;
|
|||
import org.apache.commons.httpclient.NameValuePair;
|
||||
import org.apache.commons.httpclient.methods.DeleteMethod;
|
||||
import org.apache.commons.httpclient.methods.GetMethod;
|
||||
import org.apache.commons.httpclient.methods.HeadMethod;
|
||||
import org.apache.commons.httpclient.methods.InputStreamRequestEntity;
|
||||
import org.apache.commons.httpclient.methods.PostMethod;
|
||||
import org.apache.commons.httpclient.methods.PutMethod;
|
||||
|
@ -297,6 +298,10 @@ public class InputStreamBinder extends IInputStreamService.Stub {
|
|||
method = new MkColMethod(requestUrl);
|
||||
break;
|
||||
|
||||
case "HEAD":
|
||||
method = new HeadMethod(requestUrl);
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new UnsupportedOperationException(EXCEPTION_UNSUPPORTED_METHOD);
|
||||
|
||||
|
|
Loading…
Reference in a new issue