We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5591683 commit 07f8508Copy full SHA for 07f8508
inertia/http.py
@@ -39,7 +39,12 @@ def build_props():
39
return deep_transform_callables(_props)
40
41
def render_ssr():
42
- response = requests.post(f'{settings.INERTIA_SSR_URL}/render', json=page_data())
+ data = json_encode(page_data(), cls=settings.INERTIA_JSON_ENCODER)
43
+ response = requests.post(
44
+ f"{settings.INERTIA_SSR_URL}/render",
45
+ data=data,
46
+ headers={"Content-Type": "application/json"},
47
+ )
48
response.raise_for_status()
49
return base_render(request, 'inertia_ssr.html', {
50
'inertia_layout': settings.INERTIA_LAYOUT,
0 commit comments