add precondition saying the request line should not be empty
This commit is contained in:
@@ -137,7 +137,7 @@ feature -- Parsing
|
|||||||
end_of_stream
|
end_of_stream
|
||||||
loop
|
loop
|
||||||
line := a_input.last_string
|
line := a_input.last_string
|
||||||
n := line.count
|
n := line.count
|
||||||
print ("%N" +line+ "%N")
|
print ("%N" +line+ "%N")
|
||||||
pos := line.index_of (':',1)
|
pos := line.index_of (':',1)
|
||||||
if pos > 0 then
|
if pos > 0 then
|
||||||
@@ -163,7 +163,7 @@ feature -- Parsing
|
|||||||
|
|
||||||
analyze_request_line (line: STRING)
|
analyze_request_line (line: STRING)
|
||||||
require
|
require
|
||||||
line /= Void
|
line /= Void and then line.count > 0
|
||||||
local
|
local
|
||||||
pos, next_pos: INTEGER
|
pos, next_pos: INTEGER
|
||||||
do
|
do
|
||||||
|
|||||||
Reference in New Issue
Block a user