Add c_reset_headers
commit2ed9e190fe2fb5d3f5a30f23046ae611651c4dad
authorToni Gundogdu <legatvs@gmail.com>
Sun, 3 Mar 2013 11:03:30 +0000 (3 13:03 +0200)
committerToni Gundogdu <legatvs@gmail.com>
Mon, 4 Mar 2013 10:46:00 +0000 (4 12:46 +0200)
tree493e7ec8a819c72ca143884cb12fcfd827790626
parent46f9db1fcd3eb58b43e063edfc078b37812e7929
Add c_reset_headers

Release and clear the custom headers set with CURLOPT_HTTPHEADER.
This restores the internal headers to their initial state.

c_close calls this function, releasing any previously added custom
headers.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
src/curl/close.c
src/curl/reset.c