fix(headers): bug in curl header list management

unique_ptr deallocated the list after appending.
fix(headers): bug when retrieving empty header

When trimming left, the reached character was assumed to not be
the end ('\0') of the string.
try set python to 2.7 on travis