~kf5jwc/callpass-server

1561f90054d28ebcd6b40685289c41c06b16f7fc — Kyle Jones 7 months ago 2f340f5
Use HTTP 200 because this is not 204

1. If you return 204, the framework does not send content.
2. It is correct to do this; but we do want to return content.
1 files changed, 1 insertions(+), 1 deletions(-)

M callpass_server/server.py
M callpass_server/server.py => callpass_server/server.py +1 -1
@@ 28,7 28,7 @@ async def request_code(callsign: str) -> HTMLResponse:
    result = await lookup.callsign(callsign)

    if not isinstance(result, lookup.Valid):
        return HTMLResponse(Templates.error.render(result), status_code=204)
        return HTMLResponse(Templates.error.render(result))

    return HTMLResponse(Templates.code.render(result))