This commit is contained in:
jvelilla
2013-06-18 10:30:55 -03:00
8 changed files with 12 additions and 175 deletions

View File

@@ -1,26 +0,0 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-11-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-11-0 http://www.eiffel.com/developers/xml/configuration-1-11-0.xsd" name="ewf_support" uuid="BDBAA858-2658-4169-A44A-0BB61E3B40E7" library_target="ewf_support">
<target name="ewf_support">
<root all_classes="true"/>
<file_rule>
<exclude>/.git$</exclude>
<exclude>/EIFGENs$</exclude>
<exclude>/.svn$</exclude>
</file_rule>
<option warning="true" full_class_checking="true" is_attached_by_default="true" void_safety="all" syntax="standard">
</option>
<library name="base" location="$ISE_LIBRARY\library\base\base-safe.ecf"/>
<cluster name="src" location=".\src\">
<cluster name="before_72" location="$|before_72\">
<condition>
<version type="compiler" max="7.1.9.9999"/>
</condition>
</cluster>
<cluster name="greater_or_72" location="$|greater_or_72\">
<condition>
<version type="compiler" min="7.2.0.0"/>
</condition>
</cluster>
</cluster>
</target>
</system>

View File

@@ -1,26 +0,0 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-8-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-8-0 http://www.eiffel.com/developers/xml/configuration-1-8-0.xsd" name="ewf_support" uuid="BDBAA858-2658-4169-A44A-0BB61E3B40E7" library_target="ewf_support">
<target name="ewf_support">
<root all_classes="true"/>
<file_rule>
<exclude>/.git$</exclude>
<exclude>/EIFGENs$</exclude>
<exclude>/.svn$</exclude>
</file_rule>
<option warning="true" full_class_checking="true" void_safety="none" syntax="standard">
</option>
<library name="base" location="$ISE_LIBRARY/library/base/base.ecf"/>
<cluster name="src" location=".\src\" recursive="false">
<cluster name="before_72" location="$|before_72\">
<condition>
<version type="compiler" max="7.1.9.9999"/>
</condition>
</cluster>
<cluster name="greater_or_72" location="$|greater_or_72\">
<condition>
<version type="compiler" min="7.2.0.0"/>
</condition>
</cluster>
</cluster>
</target>
</system>

View File

@@ -1,49 +0,0 @@
note
description: "Shared instance of execution environment."
legal: "See notice at end of class."
status: "See notice at end of class."
date: "$Date$"
revision: "$Revision$"
class
SHARED_EXECUTION_ENVIRONMENT
feature {NONE}
Execution_environment: EXECUTION_ENVIRONMENT
once
create Result
end
note
copyright: "Copyright (c) 2012, Eiffel Software"
license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)"
licensing_options: "http://www.eiffel.com/licensing"
copying: "[
This file is part of Eiffel Software's Eiffel Development Environment.
Eiffel Software's Eiffel Development Environment is free
software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published
by the Free Software Foundation, version 2 of the License
(available at the URL listed under "license" above).
Eiffel Software's Eiffel Development Environment is
distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public
License along with Eiffel Software's Eiffel Development
Environment; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
]"
source: "[
Eiffel Software
5949 Hollister Ave., Goleta, CA 93117 USA
Telephone 805-685-1006, Fax 805-685-6869
Website http://www.eiffel.com
Customer support http://support.eiffel.com
]"
end

View File

@@ -1,36 +0,0 @@
note
description: "[
The WSF_SUPPORT class is meant to handle incompatibilities between version of libraries
And still allow to benefit from most recent improvements.
Unicode is an example
]"
date: "$Date$"
revision: "$Revision$"
class
WSF_SUPPORT
inherit
ANY
SHARED_EXECUTION_ENVIRONMENT
export
{NONE} all
end
feature -- Access: environment
starting_environment: HASH_TABLE [READABLE_STRING_GENERAL, READABLE_STRING_GENERAL]
do
Result := execution_environment.starting_environment_variables
end
environment_item (a_name: READABLE_STRING_GENERAL): detachable STRING_32
do
if attached execution_environment.get (a_name.to_string_8) as v then
Result := v.to_string_32
end
end
end

View File

@@ -1,34 +0,0 @@
note
description: "[
The WSF_SUPPORT class is meant to handle incompatibilities between version of libraries
And still allow to benefit from most recent improvements.
Unicode is an example
]"
date: "$Date$"
revision: "$Revision$"
class
WSF_SUPPORT
inherit
ANY
SHARED_EXECUTION_ENVIRONMENT
export
{NONE} all
end
feature -- Access: environment
starting_environment: HASH_TABLE [READABLE_STRING_GENERAL, READABLE_STRING_GENERAL]
do
Result := execution_environment.starting_environment
end
environment_item (a_name: READABLE_STRING_GENERAL): detachable STRING_32
do
Result := execution_environment.item (a_name)
end
end

View File

@@ -30,10 +30,15 @@ feature -- Execution
handle_unavailable (res) handle_unavailable (res)
elseif requires_proxy (req) then elseif requires_proxy (req) then
handle_use_proxy (req, res) handle_use_proxy (req, res)
elseif maximum_uri_length > 0 and then req.request_uri.count.to_natural_32 > maximum_uri_length then elseif
maximum_uri_length > 0 and then
req.request_uri.count.to_natural_32 > maximum_uri_length
then
handle_request_uri_too_long (res) handle_request_uri_too_long (res)
elseif req.is_request_method ({HTTP_REQUEST_METHODS}.method_options) and then elseif
req.request_uri.same_string ("*") then req.is_request_method ({HTTP_REQUEST_METHODS}.method_options) and then
req.request_uri.same_string ("*")
then
handle_server_options (req, res) handle_server_options (req, res)
else else
create l_sess create l_sess

View File

@@ -42,6 +42,9 @@ feature {WGI_CONNECTOR} -- Implementation: Execution
w_req.destroy w_req.destroy
rescue rescue
if w_res /= Void then if w_res /= Void then
if not (w_res.status_committed or w_res.header_committed) then
w_res.set_status_code ({HTTP_STATUS_CODE}.internal_server_error)
end
w_res.flush w_res.flush
end end
if w_req /= Void then if w_req /= Void then

View File

@@ -234,7 +234,7 @@ feature -- Access: Input
n: INTEGER n: INTEGER
do do
if raw_input_data_recorded and then attached raw_input_data as d then if raw_input_data_recorded and then attached raw_input_data as d then
buf.copy (d) buf.append (d)
else else
l_input := input l_input := input
if is_chunked_input then if is_chunked_input then