properly set headers on proxy requests