Skip to content

Conversation

xuanzhi33
Copy link

No description provided.

break
else:
# 3. Try to load index file
await write(request, "HTTP/1.1 200 OK\r\n\r\n")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

send_file can raise HttpError and in this case status 404 would be sent after status 200

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In line 95-97:

            if isinstance(handler, str):
                await write(request, "HTTP/1.1 200 OK\r\n\r\n")
                await send_file(request, handler)

That might also cause this situation. Maybe this should also be changed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants