Skip to content
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

Redering 200 when it should render empty CSS #179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jorgepedret
Copy link
Collaborator

Example app:

/main.less
/200.jade

When /main.less has content it renders fine, but if there are no styles, then it renders the 200.jade.

Expected behaviour:
It should render an empty CSS file if it exists with text/css as the Content Type.

Current behaviour:
It's returning the type as text/html and the content of the 200.jade

@kennethormandy
Copy link
Collaborator

Just for future my reference, these are the failing tests and not the fix yet.

@kennethormandy
Copy link
Collaborator

I think this is also happening for HTML, if you have an empty .jade file it returns a 404 instead of a blank .html file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants