Fix issue if history query has no post content

This commit is contained in:
Greg Schueler 2012-08-29 09:07:08 -07:00
parent c86a9a1b6e
commit 26f3038bb1
5 changed files with 72 additions and 2 deletions

View file

@ -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;
}
}