Giter Site home page Giter Site logo

Comments (2)

mikedeboer avatar mikedeboer commented on July 18, 2024

The flow in jsDAV when a GET is requested on a directory should be as follows:
1. if the browser plugin is loaded (lib/DAV/plugins/browser.js), GET requests on directory objects are caught and displays a listing of the directory contents in HTML format
2. if the browser plugin is not loaded jsDAV will return a HTTP status 501 (Not Implemented) as response.

I am wondering now which version - or revision - of jsDAV you're using? When I look at https://github.com/mikedeboer/jsDAV/blob/master/lib/DAV/handler.js#L364 the code to handle GET requests on directories and returning a 501 is there.
I'm also asking about the version/ revision, because on the 'node.get(' call is not on line 547 in handler.js...

from jsdav.

drahgon55 avatar drahgon55 commented on July 18, 2024

Well the function the error had to do with is "this.httpHead" https://github.com/mikedeboer/jsDAV/blob/master/lib/DAV/handler.js#L507, but I actually I forgot I added the node.get to that function sorry about that. It was necessary to for me to get the length of the body for the content-length header which you are missing. Which is actually another issue I'm going to open.

from jsdav.

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.