From 024e5e4b048e7fd4eca81a71f27f253459932c53 Mon Sep 17 00:00:00 2001 From: Colin Adams Date: Thu, 11 Apr 2013 12:04:11 +0100 Subject: [PATCH 1/2] Fixed Use Proxy response bug --- library/server/wsf/router/wsf_routed_skeleton_service.e | 1 + 1 file changed, 1 insertion(+) diff --git a/library/server/wsf/router/wsf_routed_skeleton_service.e b/library/server/wsf/router/wsf_routed_skeleton_service.e index 22c44c90..fef0be77 100644 --- a/library/server/wsf/router/wsf_routed_skeleton_service.e +++ b/library/server/wsf/router/wsf_routed_skeleton_service.e @@ -256,6 +256,7 @@ feature {NONE} -- Implementation h.put_current_date h.put_location (proxy_server (req).string) h.put_content_length (0) + res.put_header_text (h.string) res.set_status_code ({HTTP_STATUS_CODE}.use_proxy) ensure response_status_is_set: res.status_is_set From f52aa2ecff93210fae5b661390fc415170345554 Mon Sep 17 00:00:00 2001 From: Colin Adams Date: Wed, 17 Apr 2013 15:37:39 +0100 Subject: [PATCH 2/2] Made changes requested in review --- library/server/ewsgi/specification/request/wgi_request.e | 2 +- .../server/ewsgi/src/implementation/wgi_request_from_table.e | 2 +- library/server/wsf/router/wsf_routed_skeleton_service.e | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/server/ewsgi/specification/request/wgi_request.e b/library/server/ewsgi/specification/request/wgi_request.e index d8b77a4c..9420a766 100644 --- a/library/server/ewsgi/specification/request/wgi_request.e +++ b/library/server/ewsgi/specification/request/wgi_request.e @@ -605,7 +605,7 @@ feature -- HTTP_* end http_if_match: detachable READABLE_STRING_8 - -- Existance check on resource + -- Existence check on resource deferred end diff --git a/library/server/ewsgi/src/implementation/wgi_request_from_table.e b/library/server/ewsgi/src/implementation/wgi_request_from_table.e index 9f2fdec4..636f5495 100644 --- a/library/server/ewsgi/src/implementation/wgi_request_from_table.e +++ b/library/server/ewsgi/src/implementation/wgi_request_from_table.e @@ -249,7 +249,7 @@ feature -- Access: HTTP_* CGI meta parameters - 1.1 end http_if_match: detachable READABLE_STRING_8 - -- Existance check on resource + -- Existence check on resource do Result := meta_string_variable ({WGI_META_NAMES}.http_if_match) end diff --git a/library/server/wsf/router/wsf_routed_skeleton_service.e b/library/server/wsf/router/wsf_routed_skeleton_service.e index fef0be77..48284652 100644 --- a/library/server/wsf/router/wsf_routed_skeleton_service.e +++ b/library/server/wsf/router/wsf_routed_skeleton_service.e @@ -256,7 +256,7 @@ feature {NONE} -- Implementation h.put_current_date h.put_location (proxy_server (req).string) h.put_content_length (0) - res.put_header_text (h.string) + res.put_header_lines (h) res.set_status_code ({HTTP_STATUS_CODE}.use_proxy) ensure response_status_is_set: res.status_is_set