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

Prevents an invalid memory access and incorrect HTTP method settings.

Fixes https://github.com/Metaswitch/sprout/issues/418. Fixes #42.