Fix django url bug
This commit is contained in:
parent
5925bc95f5
commit
67ddd9b389
|
|
@ -16,7 +16,7 @@ class PrivateGraphQLView(LoginRequiredMixin, GraphQLView):
|
||||||
def home(request):
|
def home(request):
|
||||||
if settings.SERVE_VIA_WEBPACK:
|
if settings.SERVE_VIA_WEBPACK:
|
||||||
try:
|
try:
|
||||||
res = requests.get('http://localhost:8080/{}'.format(request.get_full_path()))
|
res = requests.get('http://localhost:8080{}'.format(request.get_full_path()))
|
||||||
headers = res.headers
|
headers = res.headers
|
||||||
content_type = headers.get('content-type', 'text/html')
|
content_type = headers.get('content-type', 'text/html')
|
||||||
return HttpResponse(res.text, content_type=content_type)
|
return HttpResponse(res.text, content_type=content_type)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue