Allow query parameters in the connection's endpoint

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=227898246
This commit is contained in:
guyben
2019-01-08 10:53:35 -05:00
committed by Ben McIlwain
parent a81d45fe5d
commit 9eaeab9cfe
3 changed files with 145 additions and 2 deletions
@@ -102,8 +102,7 @@ class AppEngineConnection {
private String internalSend(
String endpoint, Map<String, ?> params, MediaType contentType, @Nullable byte[] payload)
throws IOException {
GenericUrl url = new GenericUrl(getServer());
url.setRawPath(endpoint);
GenericUrl url = new GenericUrl(String.format("%s%s", getServer(), endpoint));
url.putAll(params);
HttpRequest request =
(payload != null)