Skip to content

Commit

Permalink
Merge pull request #27 from dfernandez79/master
Browse files Browse the repository at this point in the history
Removed super from get and post to support overriding of doRequest
  • Loading branch information
jgritman committed Feb 25, 2014
2 parents b79a515 + 6b99c9f commit 6cafdd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/groovyx/net/http/RESTClient.java
Expand Up @@ -116,7 +116,7 @@ public RESTClient( Object defaultURI, Object defaultContentType ) throws URISynt
*/
public Object get( Map<String,?> args ) throws ClientProtocolException,
IOException, URISyntaxException {
return super.doRequest( new RequestConfigDelegate( args, new HttpGet(), null ) );
return doRequest( new RequestConfigDelegate( args, new HttpGet(), null ) );
}

/**
Expand All @@ -138,7 +138,7 @@ public Object get( Map<String,?> args ) throws ClientProtocolException,
*/
@Override public Object post( Map<String,?> args )
throws URISyntaxException, ClientProtocolException, IOException {
return super.doRequest( new RequestConfigDelegate( args, new HttpPost(), null ) );
return doRequest( new RequestConfigDelegate( args, new HttpPost(), null ) );
}

/**
Expand Down

0 comments on commit 6cafdd8

Please sign in to comment.