Added tests for HttpOptionsAttribute

This commit is contained in:
jacalvar 2016-03-10 09:49:44 -08:00
parent 2b7a98a4d6
commit 75df24e357
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ namespace Microsoft.AspNetCore.Mvc.Routing
data.Add(new HttpPatchAttribute(), new[] { "PATCH" });
data.Add(new HttpDeleteAttribute(), new[] { "DELETE" });
data.Add(new HttpHeadAttribute(), new[] { "HEAD" });
data.Add(new HttpOptionsAttribute(), new[] { "OPTIONS" });
data.Add(new AcceptVerbsAttribute("MERGE", "OPTIONS"), new[] { "MERGE", "OPTIONS" });
return data;

View File

@ -26,6 +26,7 @@ namespace Microsoft.AspNetCore.Mvc.Routing
data.Add(new HttpPatchAttribute());
data.Add(new HttpDeleteAttribute());
data.Add(new HttpHeadAttribute());
data.Add(new HttpOptionsAttribute());
data.Add(new RouteAttribute(""));
return data;