fix constness of some char*
Merge pull request #2749 from MartinNowak/curl

fix constness of some char*