HTTPCLIENT-1648: Lax redirect strategy to allow redirects with DELETE method
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1680499 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a2a9746778
commit
e4157e5d24
|
@ -28,6 +28,7 @@
|
||||||
package org.apache.http.impl.client;
|
package org.apache.http.impl.client;
|
||||||
|
|
||||||
import org.apache.http.annotation.Immutable;
|
import org.apache.http.annotation.Immutable;
|
||||||
|
import org.apache.http.client.methods.HttpDelete;
|
||||||
import org.apache.http.client.methods.HttpGet;
|
import org.apache.http.client.methods.HttpGet;
|
||||||
import org.apache.http.client.methods.HttpHead;
|
import org.apache.http.client.methods.HttpHead;
|
||||||
import org.apache.http.client.methods.HttpPost;
|
import org.apache.http.client.methods.HttpPost;
|
||||||
|
@ -49,7 +50,8 @@ public class LaxRedirectStrategy extends DefaultRedirectStrategy {
|
||||||
private static final String[] REDIRECT_METHODS = new String[] {
|
private static final String[] REDIRECT_METHODS = new String[] {
|
||||||
HttpGet.METHOD_NAME,
|
HttpGet.METHOD_NAME,
|
||||||
HttpPost.METHOD_NAME,
|
HttpPost.METHOD_NAME,
|
||||||
HttpHead.METHOD_NAME
|
HttpHead.METHOD_NAME,
|
||||||
|
HttpDelete.METHOD_NAME
|
||||||
};
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue