Extracting HTTP_HEADER_BUILDER from HTTP_HEADER
to provide useful interface on WSF_RESPONSE, and make WSF_SESSION easier to use.
This commit is contained in:
@@ -60,15 +60,15 @@ feature {NONE} -- Initialization
|
||||
|
||||
feature -- Cookie
|
||||
|
||||
apply_to (h: HTTP_HEADER; a_request: WSF_REQUEST; a_path: detachable READABLE_STRING_8)
|
||||
apply_to (h: HTTP_HEADER_BUILDER; a_request: WSF_REQUEST; a_path: detachable READABLE_STRING_8)
|
||||
local
|
||||
dt: detachable DATE_TIME
|
||||
l_domain: detachable READABLE_STRING_8
|
||||
do
|
||||
l_domain := a_request.server_name
|
||||
if l_domain.same_string ("localhost") then
|
||||
-- Due to limitation of specific handling of local cookies
|
||||
-- it is recommended to use Void or IP instead of "localhost"
|
||||
-- Due to limitation of specific handling of local cookies
|
||||
-- it is recommended to use Void or IP instead of "localhost"
|
||||
l_domain := Void
|
||||
end
|
||||
if is_destroyed then
|
||||
@@ -177,7 +177,7 @@ feature {NONE} -- Implementation
|
||||
end
|
||||
|
||||
note
|
||||
copyright: "2011-2013, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
|
||||
copyright: "2011-2014, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, Eiffel Software and others"
|
||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||
source: "[
|
||||
Eiffel Software
|
||||
|
||||
Reference in New Issue
Block a user