Skip to content

Check for reserved DOS names#663

Open
Darksonn wants to merge 2 commits intotower-rs:mainfrom
Darksonn:tower-http-windows
Open

Check for reserved DOS names#663
Darksonn wants to merge 2 commits intotower-rs:mainfrom
Darksonn:tower-http-windows

Conversation

@Darksonn
Copy link
Copy Markdown
Member

I'm not sure if there is a good implementation of reserved DOS file names that we could reuse from anywhere ...

Fixes: #662

@seanmonstar
Copy link
Copy Markdown
Collaborator

Could this be done without allocating? Both the wide collect, and the normalized case collect? Copilot suggests an alternative of putting just 7 or 8 characters into a stack array from the iterator.

@Darksonn
Copy link
Copy Markdown
Member Author

Done

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.

Potential Windows Reserved Device Name Handling Issue in the Common axum Static File Stack via tower-http::ServeDir

2 participants