Fixing handling of query parameter without value

Issue#70 https://github.com/EiffelWebFramework/EWF/issues/70
This commit is contained in:
2013-09-09 15:51:20 +02:00
parent ed9fac0545
commit 9499601daf
2 changed files with 11 additions and 3 deletions

View File

@@ -464,8 +464,12 @@ feature {NONE} -- Implementation
if j > 0 then
l_name := s.substring (1, j - 1)
l_value := s.substring (j + 1, s.count)
res.force (l_value, l_name)
else
-- variable without value
l_name := s
create {IMMUTABLE_STRING_8} l_value.make_empty
end
res.force (l_value, l_name)
end
end
end