Add industry-standard X-Forwarded-Proto header to proxy. Fix unnecessary newlines.