Skip to content

Commit db379f1

Browse files
committed
Fixed updatePushRules() (#171).
1 parent 8c253b6 commit db379f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2033,7 +2033,7 @@ public PushRules updatePushRules(Integer projectId, PushRules pushRule) throws G
20332033
.withParam("file_name_regex", pushRule.getFileNameRegex())
20342034
.withParam("max_file_size", pushRule.getMaxFileSize());
20352035

2036-
Response response = post(Response.Status.OK, formData, "projects", projectId, "push_rule");
2036+
final Response response = putWithFormData(Response.Status.OK, formData, "projects", projectId, "push_rule");
20372037
return (response.readEntity(PushRules.class));
20382038
}
20392039

0 commit comments

Comments
 (0)