Skip to content

Commit

Permalink
Bugfix - do not set inspecting-content flag for empty array.
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyNoble committed Oct 6, 2019
1 parent b9ef117 commit c918384
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ public URLTriggerContentType[] getContentTypes() {
@DataBoundSetter
public void setContentTypes(URLTriggerContentType[] contentTypes) {
this.contentTypes = contentTypes.clone() ;
this.setInspectingContent( true ) ;
if( this.contentTypes.length > 0 ) {
this.setInspectingContent( true ) ;
}
}

public boolean isCheckETag() {
Expand Down

0 comments on commit c918384

Please sign in to comment.