Re: Django RequestFactory() secure not working

2014-05-17 Thread James Clemence
Great thanks! On 17 May 2014 06:20, "Kelvin Wong" wrote: > If you print out your code you will see that you are adding a key-value to > the WSGI environ: > > # print factory.post('/', secure=True) > > path:/, > GET:, > POST:, > COOKIES:{}, > META:{ > ... > 'PATH_INFO': u'/', > ... > 'REQUEST

Re: Django RequestFactory() secure not working

2014-05-16 Thread Kelvin Wong
If you print out your code you will see that you are adding a key-value to the WSGI environ: # print factory.post('/', secure=True) , POST:, COOKIES:{}, META:{ ... 'PATH_INFO': u'/', ... 'REQUEST_METHOD': 'POST', ... 'SERVER_PROTOCOL': 'HTTP/1.1', 'secure': True, ... 'wsgi.url_scheme':