save headers after populating md5
save headers after populating md5

since writing the auth header depends on the calculated md5

kjg/api_auth,todopagos/api_auth,musicglue/api_auth,Cyberwatch/api_auth,mgomes/api_auth,dunghuynh/api_auth,pd/api_auth