mirror of
https://github.com/Fishwaldo/rundeck-api-java-client.git
synced 2025-07-19 19:38:32 +00:00
Fix issue if history query has no post content
This commit is contained in:
parent
c86a9a1b6e
commit
26f3038bb1
5 changed files with 72 additions and 2 deletions
|
@ -284,4 +284,11 @@ class ApiPathBuilder {
|
|||
public List<NameValuePair> getForm() {
|
||||
return form;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if there are any Attachments or Form data for a POST request.
|
||||
*/
|
||||
public boolean hasPostContent() {
|
||||
return getAttachments().size() > 0 || getForm().size() > 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue