From eefe54755391721cc09d98df5944eb29b62e93f0 Mon Sep 17 00:00:00 2001 From: Colin Adams Date: Thu, 15 Aug 2013 14:58:58 +0100 Subject: [PATCH] Changed comment on execute to check assertion --- library/server/wsf/router/wsf_skeleton_handler.e | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/library/server/wsf/router/wsf_skeleton_handler.e b/library/server/wsf/router/wsf_skeleton_handler.e index e9ba25f1..60ebf617 100644 --- a/library/server/wsf/router/wsf_skeleton_handler.e +++ b/library/server/wsf/router/wsf_skeleton_handler.e @@ -457,10 +457,9 @@ feature -- Execution -- do check - known_method: True -- Can't be done until WSF_METHOD_NOT_ALLOWED_RESPONSE - -- is refactored. - -- Then maybe this can become a precondition. But we will still (?) - -- need a check that it isn't CONNECT or TRACE (it MIGHT be HEAD). + known_method: router.allowed_methods_for_request (req).has (req.request_method) + not_trace: not req.is_request_method ({HTTP_REQUEST_METHODS}.method_trace) + not_connect: not req.is_request_method ({HTTP_REQUEST_METHODS}.method_connect) end if req.is_request_method ({HTTP_REQUEST_METHODS}.method_options) then execute_options (req, res, router)