fix($http): ensure case-insens. header overriding

Refactored the code to save some bytes.