Fixes containsNonSimpleHeaders

containsNonSimpleHeaders currently hoops since it iterates over a bool instead of the headers object.  Simple fix caught while reviewing, not sure if this is causing problems in any functionality.