      else:
          query = ''
      return HttpResponseRedirect('/test_client/get_view/' + query)
  
  def double_redirect_view(request):
      "A view that redirects all requests to a redirection view"
      return HttpResponseRedirect('/test_client/permanent_redirect_view/')
  
 
</s> remove             response = self.get(path, QueryDict(query), follow=False)
 </s> add             response = self.get(path, QueryDict(query), follow=False, **extra)
def view_with_secure(request):
    "A view that indicates if the request was secure"
    response = HttpResponse()
    response.test_was_secure_request = request.is_secure()
    return response

      else:
          query = ''
      return HttpResponseRedirect('/test_client/get_view/' + query)
  
def view_with_secure(request):
    "A view that indicates if the request was secure"
    response = HttpResponse()
    response.test_was_secure_request = request.is_secure()
    return response

  def double_redirect_view(request):
      "A view that redirects all requests to a redirection view"
      return HttpResponseRedirect('/test_client/permanent_redirect_view/')
  
keep keep keep add keep keep keep keep
 Fixed #12011 -- Modified the test client to preserve the request scheme on a redirect. Thanks to tgardner for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12419 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
tests/modeltests/test_client/views.py