Skip to content

Commit

Permalink
#11: make method parameter not required.
Browse files Browse the repository at this point in the history
  • Loading branch information
grundic committed Nov 3, 2016
1 parent 24a9534 commit 9fbeb7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ apply plugin: 'java'
apply plugin: 'com.github.rodm.teamcity-server'

group = 'ru.mail.teamcity'
version = '1.6.0'
version = '1.6.1'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public RequestConfiguration(@NotNull Map<String, String> stringMap, @NotNull Val
public void process() {
this.url = extractor.getExpandedRequiredValue(URL_PARAMETER);
this.timeout = extractor.getIntegerValue(TIMEOUT_PARAMETER, DEFAULT_TIMEOUT);
this.method = Method.valueOf(extractor.getRequiredValue(METHOD_PARAMETER));
this.method = Method.valueOf(extractor.getValue(METHOD_PARAMETER, Method.GET.toString()));
this.payload = extractor.getExpandedValue(PAYLOAD_PARAMETER, EMPTY_STRING);
this.headers = extractHeaders();
this.username = extractor.getExpandedValue(USERNAME_PARAMETER, EMPTY_STRING);
Expand Down

0 comments on commit 9fbeb7d

Please sign in to comment.