Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit f60bf89

Browse files
authored
doc: fix issue with python rest API guide (#625)
Guide still referenced a v0 property on returned values
1 parent 2e21df0 commit f60bf89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/guides/python/serverless-rest-api-example.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ async def get_profile(ctx: HttpContext) -> None:
124124
pid = ctx.req.params['id']
125125
d = await profiles.get(pid)
126126

127-
ctx.res.body = f"{d.content}"
127+
ctx.res.body = f"{d}"
128+
ctx.res.headers['Content-Type'] = 'application/json'
128129
```
129130

130131
### Remove a profile with DELETE

0 commit comments

Comments
 (0)