Fixed a last minute regression due to removal REQUEST.chunked_input
This commit is contained in:
@@ -166,11 +166,29 @@ feature -- Retrieve content from WGI_INPUT_STREAM
|
||||
retrieve_data ( req : WSF_REQUEST) : STRING
|
||||
-- retrieve the content from the input stream
|
||||
-- handle differents transfers
|
||||
local
|
||||
l_input: WGI_INPUT_STREAM
|
||||
n: INTEGER
|
||||
s: STRING
|
||||
do
|
||||
Result := ""
|
||||
if req.is_chunked_input then
|
||||
if attached req.chunked_input as l_chunked_input then
|
||||
Result := l_chunked_input.data.as_string_8
|
||||
l_input := req.input
|
||||
from
|
||||
n := 1_024
|
||||
create Result.make (n)
|
||||
until
|
||||
n = 0
|
||||
loop
|
||||
l_input.read_string (n)
|
||||
s := l_input.last_string
|
||||
if s.count = 0 then
|
||||
n := 0
|
||||
else
|
||||
if s.count < n then
|
||||
n := 0
|
||||
end
|
||||
Result.append (s)
|
||||
end
|
||||
end
|
||||
else
|
||||
req.input.read_string (req.content_length_value.as_integer_32)
|
||||
@@ -203,7 +221,6 @@ feature -- Handle responses
|
||||
res.put_string (a_description)
|
||||
end
|
||||
|
||||
|
||||
handle_precondition_fail_response (a_description: STRING; ctx: C; req: WSF_REQUEST; res: WSF_RESPONSE )
|
||||
local
|
||||
h : HTTP_HEADER
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
</option>
|
||||
<library name="base" location="$ISE_LIBRARY/library/base/base-safe.ecf"/>
|
||||
<library name="http" location="..\..\protocol\http\http-safe.ecf"/>
|
||||
<library name="ewsgi" location="..\ewsgi\ewsgi-safe.ecf"/>
|
||||
<library name="wsf-safe" location="..\wsf\wsf-safe.ecf"/>
|
||||
<cluster name="src" location="./src" recursive="true"/>
|
||||
</target>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
</option>
|
||||
<library name="base" location="$ISE_LIBRARY/library/base/base.ecf"/>
|
||||
<library name="http" location="..\..\protocol\http\http.ecf"/>
|
||||
<library name="ewsgi" location="..\ewsgi\ewsgi.ecf"/>
|
||||
<library name="wsf" location="..\wsf\wsf.ecf"/>
|
||||
<cluster name="src" location="./src" recursive="true"/>
|
||||
</target>
|
||||
|
||||
Reference in New Issue
Block a user