Skip to content

Cannot close normally after takebody in middleware #2370

Answered by fakeshadow
Tim-Paik asked this question in Q&A
Discussion options

You must be logged in to vote

And a side note you may want to use a middleware where you check the env before actix_files service get called. Your current code would call the service regardless and make fs syscall.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@Tim-Paik
Comment options

@fakeshadow
Comment options

Comment options

You must be logged in to vote
3 replies
@Tim-Paik
Comment options

@fakeshadow
Comment options

@Tim-Paik
Comment options

Answer selected by Tim-Paik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants