Skip to content

Commit

Permalink
HTTPCLIENT-1648: Lax redirect strategy to allow redirects with DELETE…
Browse files Browse the repository at this point in the history
… method

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1680499 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
ok2c committed May 20, 2015
1 parent a2a9746 commit e4157e5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
package org.apache.http.impl.client;

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.HttpHead;
import org.apache.http.client.methods.HttpPost;
Expand All @@ -49,7 +50,8 @@ public class LaxRedirectStrategy extends DefaultRedirectStrategy {
private static final String[] REDIRECT_METHODS = new String[] {
HttpGet.METHOD_NAME,
HttpPost.METHOD_NAME,
HttpHead.METHOD_NAME
HttpHead.METHOD_NAME,
HttpDelete.METHOD_NAME
};

@Override
Expand Down

0 comments on commit e4157e5

Please sign in to comment.