Skip to content

Commit

Permalink
HttpGetWithEntity inherits from HttpEntityEnclosingRequestBase rather…
Browse files Browse the repository at this point in the history
… than HttpPost for parity with HttpDeleteWithEntity
  • Loading branch information
cheald committed Oct 7, 2015
1 parent 123c087 commit b776fc1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions ext/manticore/org/manticore/HttpGetWithEntity.java
@@ -1,17 +1,23 @@
package org.manticore;

import java.net.URI;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;

public class HttpGetWithEntity extends HttpPost {
public class HttpGetWithEntity extends HttpEntityEnclosingRequestBase {
public final static String METHOD_NAME = "GET";

public HttpGetWithEntity() {
super();
}

public HttpGetWithEntity(URI url) {
super(url);
super();
setURI(url);
}

public HttpGetWithEntity(String url) {
super(url);
super();
setURI(URI.create(url));
}

@Override
Expand Down
Binary file modified lib/jar/manticore-ext.jar
Binary file not shown.

0 comments on commit b776fc1

Please sign in to comment.