Skip to content

Conversation

@MichaelSB
Copy link
Contributor

This is a fix for #469

  1. if the path given to set_static_file_info or set_static_file_info_unsafe is not a regular file return 404.
  2. this->end() in the error case in set_static_file_info_unsafe locks crow, when the route-handler uses return response, because the completion-handler is called twice. Removing it, makes it work in all cases.
@The-EDev The-EDev linked an issue Jun 15, 2022 that may be closed by this pull request
@MichaelSB
Copy link
Contributor Author

I defined the missing macro for windows as done in the SO discussion. On Linux this still compiles and works.

@MichaelSB MichaelSB requested a review from The-EDev June 22, 2022 09:29
Copy link
Member

@The-EDev The-EDev left a 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.

Copy link
Member

@The-EDev The-EDev left a 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

@The-EDev
Copy link
Member

Merging now, thank you for your help!

@The-EDev The-EDev merged commit 6f1baed into CrowCpp:master Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants