Commit cb0fee18 authored by 六幻's avatar 六幻
Browse files

fix:PUT mehtod is not workable at all.

parent db48ec90
...@@ -250,7 +250,7 @@ public class GitLabApiClient { ...@@ -250,7 +250,7 @@ public class GitLabApiClient {
* @return a ClientResponse instance with the data returned from the endpoint * @return a ClientResponse instance with the data returned from the endpoint
*/ */
protected Response put (MultivaluedMap<String, String> queryParams, URL url) { protected Response put (MultivaluedMap<String, String> queryParams, URL url) {
return invocation(url, queryParams).put(null); return invocation(url, null).put(Entity.entity(queryParams, MediaType.APPLICATION_FORM_URLENCODED_TYPE));
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment