bug report
recognize proxy's HTTP_X_FORWARDED_PROTO

Fixes #871
Merge branch 'http_x_forwarded_proto' into devel