add precondition saying the request line should not be empty

This commit is contained in:
Jocelyn Fiat
2011-09-21 15:26:23 +02:00
parent 9fef2d71f0
commit 58767bb1c1

View File

@@ -137,7 +137,7 @@ feature -- Parsing
end_of_stream
loop
line := a_input.last_string
n := line.count
n := line.count
print ("%N" +line+ "%N")
pos := line.index_of (':',1)
if pos > 0 then
@@ -163,7 +163,7 @@ feature -- Parsing
analyze_request_line (line: STRING)
require
line /= Void
line /= Void and then line.count > 0
local
pos, next_pos: INTEGER
do