be sure we got the full content same as content length
This commit is contained in:
@@ -52,6 +52,7 @@ feature {NONE} -- Implementation: Form analyzer
|
|||||||
require
|
require
|
||||||
a_content_type_valid: a_content_type /= Void and not a_content_type.has_error
|
a_content_type_valid: a_content_type /= Void and not a_content_type.has_error
|
||||||
s_attached: s /= Void
|
s_attached: s /= Void
|
||||||
|
same_content_length: req.content_length_value = s.count
|
||||||
vars_attached: vars /= Void
|
vars_attached: vars /= Void
|
||||||
local
|
local
|
||||||
p,i,next_b: INTEGER
|
p,i,next_b: INTEGER
|
||||||
@@ -233,7 +234,7 @@ feature {NONE} -- Implementation: Form analyzer
|
|||||||
-- Default content type
|
-- Default content type
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2012, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
|
copyright: "2011-2013, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ class
|
|||||||
|
|
||||||
inherit
|
inherit
|
||||||
WSF_VALUE
|
WSF_VALUE
|
||||||
|
redefine
|
||||||
|
debug_output
|
||||||
|
end
|
||||||
|
|
||||||
create
|
create
|
||||||
make
|
make
|
||||||
@@ -31,6 +34,23 @@ feature -- Access
|
|||||||
|
|
||||||
url_encoded_name: READABLE_STRING_8
|
url_encoded_name: READABLE_STRING_8
|
||||||
|
|
||||||
|
feature -- Status report
|
||||||
|
|
||||||
|
debug_output: STRING
|
||||||
|
-- String that should be displayed in debugger to represent `Current'.
|
||||||
|
do
|
||||||
|
Result := Precursor
|
||||||
|
if
|
||||||
|
exists and then
|
||||||
|
attached tmp_name as n
|
||||||
|
then
|
||||||
|
Result.append_character (' ')
|
||||||
|
Result.append_character ('%"')
|
||||||
|
Result.append (n)
|
||||||
|
Result.append_character ('%"')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
feature -- Element change
|
feature -- Element change
|
||||||
|
|
||||||
change_name (a_name: like name)
|
change_name (a_name: like name)
|
||||||
|
|||||||
Reference in New Issue
Block a user