MULE-8018: Merge http connector code cleanup

Minor: == for enum equality (also elsewhere in this impl)