Skip to content

Commit c3b9c32

Browse files
committed
Changed processing of whitespace on content properties (#136).
1 parent 9b2b383 commit c3b9c32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ protected void addFormParam(Form formData, String name, Object value, boolean re
299299
return;
300300
}
301301

302-
String stringValue = value.toString().trim();
303-
if (required && stringValue.length() == 0) {
302+
String stringValue = value.toString();
303+
if (required && stringValue.trim().length() == 0) {
304304
throw new IllegalArgumentException(name + " cannot be empty or null");
305305
}
306306

0 commit comments

Comments
 (0)