Curl proxy header issue

fixes https://sourceforge.net/p/curl/bugs/1204/