MULE-8018: Merge http connector code cleanup

Minor english: not -> doesn't.  Or maybe invert and used "endsWithWildcard"?