ServiceStack/ServiceStack — pull request #834 by ckasabula (2013-09-30 18:54:37+00:00)
Title: RequestAttributes.AnyHttpMethod does not include HttpPatch and HttpOptions

Fix for: RequestAttributes.AnyHttpMethod does not include HttpPatch and HttpOptions. Patch/Options stripped out when used w/ RestrictAttribute.

[Restrict(new[] {
EndpointAttributes.AnyNetworkAccessType | EndpointAttributes.HttpGet | EndpointAttributes.HttpPatch | EndpointAttributes.HttpPost,
EndpointAttributes.InternalNetworkAccess | EndpointAttributes.HttpDelete
})]
[TriggerPageUpdateAttribute]
public class FooDto
{
}

Http patch calls to the service using FooDto will be kicked out w/ a UnauthorizedAccessException.