Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Fix Content-Type when static file w/o extension name #409

Merged
merged 2 commits into from
Sep 21, 2020

Conversation

happiness9721
Copy link
Contributor

When the static file w/o extension name, server will return text/html as it Content-Type.
I fix the condition of Mime::get function and add new test case.

If pass empty string to this function, It should not return all mimes.
@coveralls
Copy link

coveralls commented May 11, 2020

Coverage Status

Coverage remained the same at 68.586% when pulling 42af646 on happiness9721:master into 2271aa7 on swooletw:master.

@happiness9721 happiness9721 changed the title Fix Content-Type when static file w/t extension name Fix Content-Type when static file w/o extension name May 11, 2020
@albertcht
Copy link
Member

Hi @happiness9721 ,

Thanks for your pull request.

@albertcht albertcht merged commit 61aa077 into swooletw:master Sep 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants