Added url params before making the connection
Renamed method to keep consistency
This commit is contained in:
1 parent
8e23e81c57
commit
40bb525374
3 files changed
+6
-5
No files matched your search
@@ -61,9 +61,10 @@ class Request
|
||||
|
||||
private void createConnection() throws IOException
|
||||
{
|
||||
String effectiveUrl = URLUtils.appendParametersToQueryString(url, querystringParams);
|
||||
if (connection == null)
|
||||
{
|
||||
connection = (HttpURLConnection) new URL(url).openConnection();
|
||||
connection = (HttpURLConnection) new URL(effectiveUrl).openConnection();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +120,7 @@ class Request
|
||||
* @param key the parameter name
|
||||
* @param value the parameter value
|
||||
*/
|
||||
public void addQuerystringParam(String key, String value)
|
||||
public void addQuerystringParameter(String key, String value)
|
||||
{
|
||||
this.querystringParams.put(key, value);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user