We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e90ca96 commit 78521a7Copy full SHA for 78521a7
1 file changed
surftimer/ck_playertemp.py
@@ -171,9 +171,9 @@ async def selectPlayerTmp(
171
if xquery:
172
xquery = xquery.pop()
173
else:
174
- return JSONResponse(
175
- status_code=status.HTTP_404_NOT_FOUND, content=json.loads(cached_data)
176
- )
+ response.headers['content-type'] = 'application/json'
+ response.status_code = status.HTTP_204_NO_CONTENT
+ return response
177
178
# Cache the data in Redis
179
set_cache(cache_key, xquery)
0 commit comments