-
-
Notifications
You must be signed in to change notification settings - Fork 474
only allow regular files in set_static_file_info, return 404 in all o… #470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I defined the missing macro for windows as done in the SO discussion. On Linux this still compiles and works. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from the comment I haven't tested the PR on windows, I'll try to get a VM running ASAP so I can do so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on windows, everything seems to be working as intended
Merging now, thank you for your help! |
This is a fix for #469
path
given toset_static_file_info
orset_static_file_info_unsafe
is not a regular file return404
.this->end()
in the error case inset_static_file_info_unsafe
locks crow, when the route-handler usesreturn response
, because the completion-handler is called twice. Removing it, makes it work in all cases.