Fixes problems highlighted by @DASPRiD and @Maks3w
- do simple in_array comparison for transfer encoding
- remove to many spaces befor equal sign
- use camelCase var names