From 68cd78d87dad20e1dd70a207aa36492f5d745439 Mon Sep 17 00:00:00 2001 From: Colin Adams Date: Sat, 24 Nov 2012 14:13:38 +0000 Subject: [PATCH] Forced HEAD when GET requested --- library/server/wsf/router/wsf_router.e | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/server/wsf/router/wsf_router.e b/library/server/wsf/router/wsf_router.e index dda16aa0..68db1375 100644 --- a/library/server/wsf/router/wsf_router.e +++ b/library/server/wsf/router/wsf_router.e @@ -53,6 +53,9 @@ feature -- Mapping map_with_request_methods (a_mapping: WSF_ROUTER_MAPPING; rqst_methods: detachable WSF_ROUTER_METHODS) -- Map `a_mapping' for request methods `rqst_methods' do + if attached rqst_methods as l_rm and then l_rm.has ("GET") then + l_rm.enable_head + end mappings.extend (create {WSF_ROUTER_ITEM}.make_with_request_methods (a_mapping, rqst_methods)) a_mapping.handler.on_mapped (a_mapping, rqst_methods) end