Skip to content

Error downloading file  #2473

Open
Open
@757566833

Description

@757566833

Bug Report

Steps to reproduce

  1. docsify init ./docs
  2. make some file
  3. zip doc.zip
    image
  4. markdown
# Headline

> An awesome project.

<a href='doc.zip' download>download</a>
  1. npx docsify serve docs
  2. click download
  3. get http://localhost:3000/doc.zip

Current behaviour

When I use an tag in Markdown to download a file, clicking the link works correctly.
However, when I try to download the file directly through the URL, it doesn't work correctly.

image

image
download the file directly through the URL, the Content-Length returned by HTTP is incorrect.

Expected behaviour

Other relevant information

  • Docsify version:
  • Bug still occurs when all/other plugins are disabled?

  • Docsify plugins (if the bug happens when plugins enabled, please try to isolate the issue):

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