Giter Site home page Giter Site logo

Comments (6)

tcrowe avatar tcrowe commented on June 15, 2024

Hey @9662 👋 How did you run into that problem? Can you provide a test case?

from hexo-server.

9662 avatar 9662 commented on June 15, 2024

I am afraid I no longer recall the circumstances around this issue, but looking at my activity around the reporting date, I think a realistic test case could be as follows:

Have a generator middleware that extracts event-related custom metadata from the front matter and uses it to produce .ics files. Because the generated ICS files would normally be served by hexo serve with an inadequate Content-Type (possibly application/octet-stream or text/plain) they would not trigger the desired browser behaviour while testing locally, therefore you will also be needing a filter middleware to add the correct Content-Type: text/calendar header. This filter middleware would cause the reported error.

In the end I must have implemented this differently so I never followed up.

from hexo-server.

tcrowe avatar tcrowe commented on June 15, 2024

@9662 Oh if there was a solution maybe you can post it. How do you want to proceed? Should we still look for a solution or close it?

from hexo-server.

9662 avatar 9662 commented on June 15, 2024

@tcrowe Seems like a had an old pull request dealing with this. Let me check if it's salvageable.

from hexo-server.

tcrowe avatar tcrowe commented on June 15, 2024

#49

from hexo-server.

9662 avatar 9662 commented on June 15, 2024

Yup, that's the one. I just rebased and updated.

from hexo-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.