mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
309 B
14 lines
309 B
5 years ago
|
# -*- coding: utf-8 -*-
|
||
|
#
|
||
|
from django.http import HttpResponse
|
||
|
from django.utils.encoding import iri_to_uri
|
||
|
|
||
|
|
||
|
class HttpResponseTemporaryRedirect(HttpResponse):
|
||
|
status_code = 307
|
||
|
|
||
|
def __init__(self, redirect_to):
|
||
|
HttpResponse.__init__(self)
|
||
|
self['Location'] = iri_to_uri(redirect_to)
|
||
4 years ago
|
|