Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Generic method #145

Closed
wants to merge 11 commits into from
Closed

Generic method #145

wants to merge 11 commits into from

Conversation

emberian
Copy link
Contributor

Should close up #92 and pave the way for nodejs/node-v0.x-archive#3192. Currently depends on #144 or #106 being merged, because I wasn't paying attention and I don't know how to rebase it. Tests pass, but I'm still not confident in the patch quality. Review desired.

@emberian
Copy link
Contributor Author

I'm having some trouble fixing this one. The parser runs out of data before it actually finds anything invalid. At http_parser.c:1819, the default behaviour seems to be to assume that the request was valid. Mind taking a peek?

@emberian
Copy link
Contributor Author

I think adding a bit to http_parser indicating whether, given the current state, the request/response is valid if parsing were to stop immediately is a good solution. Any thoughts before I code it up later today?

if (ch == 'E') {
parser->method = HTTP_HEAD;
} else {
parser->type = HTTP_REQUEST;
}

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Reverted a simple test to succeed even though the result is invalid, because
there are other more important things that need doing in this patch (like
getting it to actually work)
@jamesamcl
Copy link

Any update on accepting this? I really need support for custom methods but I'd rather not use a fork.

@emberian
Copy link
Contributor Author

@udp The patch still doesn't quite work iirc. Want me to pick it back up?

@jamesamcl
Copy link

That'd be great if you could. I don't mind doing some testing.

@emberian
Copy link
Contributor Author

alright, I'll get to it later today.

On Tue, Aug 20, 2013 at 6:40 AM, James McLaughlin
[email protected]:

That'd be great if you could. I don't mind doing some testing.


Reply to this email directly or view it on GitHubhttps://github.com//pull/145#issuecomment-22936106
.

@mikedeboer
Copy link

@cmr to achieve full-spec CalDAV support for our project, mikedeboer/jsDAV, this'd be awesome to have!

I'm guessing more and more ppl will stumble upon this sooner or later, but you'll be my hero to start with ;)

@emberian
Copy link
Contributor Author

I'm no longer interested in working on this. Sorry!

@emberian emberian closed this Jun 11, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants