webtest's TestApp and HTTPS Detection via PasteDeployPrefix ?

12 views
Skip to first unread message

Jonathan Vanasco

unread,
May 11, 2012, 1:07:42 PM5/11/12
to Paste Users

I can't seem to figure this out--

My app uses PasteDeployPrefix to set request.scheme to 'https'

I'm trying to run some integrated tests via webtest's TestApp

I can't seem to figure out how to fake an https connection.

I tried setting { "HTTP_X_FORWARDED_SCHEME" : 'https',
"HTTP_X_FORWARDED_PROTO" : 'https', } in the get as headers and env
vars, neither worked.

anyone have a clue ?

my app requires over 50% of it's pages to be HTTPS, so it's hard to
test them right now.


Reply all
Reply to author
Forward
0 new messages