Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CalDAV. What to do with MKCALENDAR request? #109

Open
Olegas opened this issue Jun 11, 2014 · 4 comments
Open

CalDAV. What to do with MKCALENDAR request? #109

Olegas opened this issue Jun 11, 2014 · 4 comments

Comments

@Olegas
Copy link
Contributor

Olegas commented Jun 11, 2014

In CalDAV, new calendar is made via non-standard HTTP request MKCALENDAR.
Current version of NodeJS have no support for non-standard custom methods like this one (https://groups.google.com/forum/#!msg/nodejs/0KDuxleCoxE/oVDCzka_4nYJ).

What workaround can be recommended for this?

@Olegas
Copy link
Contributor Author

Olegas commented Jun 11, 2014

One of possible workarounds is to setup a frontend server (like Nginx or else) and rewrite this method to some other (POST maybe?) and add special header (X-Original-Method: MKCALENDAR) then on NodeJS side rewrite it back before passing to DAV server

@Olegas
Copy link
Contributor Author

Olegas commented Jun 11, 2014

Another possible workaround is to implement some HTTP-server with node-parsely (https://github.com/substack/node-parsley) and create some custom objects implementing request/response public API, when pass them to DAV server

@aenario
Copy link
Contributor

aenario commented Jun 11, 2014

Apparently it all boils down to nodejs/node-v0.x-archive#3192 -> nodejs/http-parser#158

Did you try the method in last message of this thread https://groups.google.com/forum/#!msg/nodejs/0KDuxleCoxE/oVDCzka_4nYJ, may be the random dropping behaviour was solved in latest nodes.

@Olegas
Copy link
Contributor Author

Olegas commented Jun 11, 2014

@aenario no, I'm not. Just discovered this issue last night. Still discovering.

I think I will use front-end method in my case (I'm already have Nginx instance in front of my CalDAV server)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants