[Reviewer: Ellie] Reset the CURLOPT_HTTPHEADER settings, so it's not still pointing to sli...

...st after that memory is freed.

Fixes https://github.com/Metaswitch/sprout/issues/418.