Skip to content

Can't send the css file correctly #172

@bagomot

Description

@bagomot

I am trying to serve my stylesheet in my template:
<link rel="stylesheet" href="css/style.css" />
I have configured mime.properties:
css=text/css
and encoding.properties:
text/css=utf-8
The style file itself is in UTF-8 encoding without BOOM.
The server sends the file via a direct link, but when trying to apply styles, it writes:

Failed to load resource: net::ERR_INVALID_CHUNKED_ENCODING

The server console writes this:

2021-Mar-24 20:28:08.7966476 | 11960 | warning | checkErro | erro=-1, dwLastError=10053 | C:\Users\user\AppData\Local\dub\packages\hunt-1.7.5\hunt\source\hunt\io\channel\iocp\Common.d:42
2021-Mar-24 20:28:08.7976483 | 11960 | error | AbstractStream.doWrite | Socket error on write: fd=1096, message=An established connection was aborted by the software in your host machine. | C:\Users\user\AppData\Local\dub\packages\hunt-1.7.5\hunt\source\hunt\io\channel\iocp\AbstractStream.d:243

I also noticed that if I reload the page many times, there is a chance that the styles will be loaded successfully, but the next time it will be a failure.

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions