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

Module http verb fix #3

Merged
merged 1 commit into from
May 14, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/Manos/Manos/ManosModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public RouteHandler Put (string pattern, MatchType matchType, ManosAction action
{
IMatchOperation [] ops = OpsForPatterns (new string [] { pattern }, matchType);

return AddRouteHandler (action, ops, HttpMethods.GetMethods);
return AddRouteHandler (action, ops, HttpMethods.PutMethods);
}

public RouteHandler Put (IManosModule module, params string [] patterns)
Expand All @@ -289,7 +289,7 @@ public RouteHandler Post (string pattern, MatchType matchType, ManosAction actio
{
IMatchOperation [] ops = OpsForPatterns (new string [] { pattern }, matchType);

return AddRouteHandler (action, ops, HttpMethods.GetMethods);
return AddRouteHandler (action, ops, HttpMethods.PostMethods);
}

public RouteHandler Post (ManosAction action, params string [] patterns)
Expand Down Expand Up @@ -318,7 +318,7 @@ public RouteHandler Delete (string pattern, MatchType matchType, ManosAction act
{
IMatchOperation [] ops = OpsForPatterns (new string [] { pattern }, matchType);

return AddRouteHandler (action, ops, HttpMethods.GetMethods);
return AddRouteHandler (action, ops, HttpMethods.DeleteMethods);
}

public RouteHandler Delete (ManosAction action, params string [] patterns)
Expand Down Expand Up @@ -347,7 +347,7 @@ public RouteHandler Head (string pattern, MatchType matchType, ManosAction actio
{
IMatchOperation [] ops = OpsForPatterns (new string [] { pattern }, matchType);

return AddRouteHandler (action, ops, HttpMethods.GetMethods);
return AddRouteHandler (action, ops, HttpMethods.HeadMethods);
}

public RouteHandler Head (ManosAction action, params string [] patterns)
Expand Down Expand Up @@ -376,7 +376,7 @@ public RouteHandler Options (string pattern, MatchType matchType, ManosAction ac
{
IMatchOperation [] ops = OpsForPatterns (new string [] { pattern }, matchType);

return AddRouteHandler (action, ops, HttpMethods.GetMethods);
return AddRouteHandler (action, ops, HttpMethods.OptionsMethods);
}

public RouteHandler Options (ManosAction action, params string [] patterns)
Expand Down Expand Up @@ -405,7 +405,7 @@ public RouteHandler Trace (string pattern, MatchType matchType, ManosAction acti
{
IMatchOperation [] ops = OpsForPatterns (new string [] { pattern }, matchType);

return AddRouteHandler (action, ops, HttpMethods.GetMethods);
return AddRouteHandler (action, ops, HttpMethods.TraceMethods);
}

public RouteHandler Trace (ManosAction action, params string [] patterns)
Expand Down