Fix CURL response headers