1 parent 7d5cf4b commit 030a5feCopy full SHA for 030a5fe
1 file changed
Flickr4Java/src/main/java/com/flickr4java/flickr/REST.java
@@ -143,7 +143,7 @@ public void setProxy(String proxyHost, int proxyPort, String username, String pa
143
@Override
144
public com.flickr4java.flickr.Response get(String path, Map<String, Object> parameters, String sharedSecret) {
145
146
- OAuthRequest request = new OAuthRequest(Verb.GET, API_HOST + path);
+ OAuthRequest request = new OAuthRequest(Verb.GET, getScheme() + "://" + getHost() + path);
147
for (Map.Entry<String, Object> entry : parameters.entrySet()) {
148
request.addQuerystringParameter(entry.getKey(), String.valueOf(entry.getValue()));
149
}
@@ -255,7 +255,7 @@ public Response getNonOAuth(String path, Map<String, String> parameters) {
255
256
public com.flickr4java.flickr.Response post(String path, Map<String, Object> parameters, String sharedSecret, boolean multipart) {
257
258
- OAuthRequest request = new OAuthRequest(Verb.POST, API_HOST + path);
+ OAuthRequest request = new OAuthRequest(Verb.POST, getScheme() + "://" + getHost() + path);
259
260
if (multipart) {
261
buildMultipartRequest(parameters, request);
0 commit comments