Fix django url bug

This commit is contained in:
Ramon Wenger 2021-12-21 21:04:22 +01:00
parent 5925bc95f5
commit 67ddd9b389
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class PrivateGraphQLView(LoginRequiredMixin, GraphQLView):
def home(request):
if settings.SERVE_VIA_WEBPACK:
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
content_type = headers.get('content-type', 'text/html')
return HttpResponse(res.text, content_type=content_type)