Skip to content

Redering 200 when it should render empty CSS#179

Open
jorgepedret wants to merge 1 commit intosintaxi:masterfrom
jorgepedret:jp
Open

Redering 200 when it should render empty CSS#179
jorgepedret wants to merge 1 commit intosintaxi:masterfrom
jorgepedret:jp

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