[go: nahoru, domu]

Skip to content

Commit

Permalink
fix: fix buildRequest setUrl order
Browse files Browse the repository at this point in the history
  • Loading branch information
arithmetic1728 committed Feb 11, 2021
1 parent e1f7eb5 commit 61a5ec8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ public HttpRequestInitializer getInitializer() {
public HttpRequest buildRequest(String requestMethod, GenericUrl url, HttpContent content)
throws IOException {
HttpRequest request = transport.buildRequest();
if (url != null) {
request.setUrl(url);
}
if (initializer != null) {
initializer.initialize(request);
}
request.setRequestMethod(requestMethod);
if (url != null) {
request.setUrl(url);
}
if (content != null) {
request.setContent(content);
}
Expand Down

0 comments on commit 61a5ec8

Please sign in to comment.