Skip to content

Commit 04aa96b

Browse files
committed
Fixed issue with space in param name (#356).
1 parent cc17e2c commit 04aa96b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/gitlab4j/api/GitLabApiForm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public GitLabApiForm withParam(String name, Object value, boolean required) thro
192192
throw new IllegalArgumentException(name + " cannot be empty or null");
193193
}
194194

195-
this.param(name, stringValue);
195+
this.param(name.trim(), stringValue);
196196
return (this);
197197
}
198198

src/main/java/org/gitlab4j/api/models/ProjectFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public GitLabApiForm getQueryParams() {
254254
.withParam("with_programming_language", withProgrammingLanguage)
255255
.withParam("wiki_checksum_failed", wikiChecksumFailed)
256256
.withParam("repository_checksum_failed", repositoryChecksumFailed)
257-
.withParam("min_access_level ", (minAccessLevel != null ? minAccessLevel.toValue() : null)
257+
.withParam("min_access_level", (minAccessLevel != null ? minAccessLevel.toValue() : null)
258258
);
259259
}
260260
}

0 commit comments

Comments
 (0)