set header X-Forwarded-Proto to https if SSL is used
convert tabs to spaces
Merge pull request #15 from sahlinet/staging

add X-Forwarded-Proto header