Web form:
- Improvement about web form manipulation (remove a field, set a text value to input fields by name, ...) - Improved web form html generation, especially for select and type checkbox - Updated the date input field interface with a new set_date_value . File response: - "application/force-download" is not a standard MIME content type, so use "application_octet_stream" instead as default. Standalone connector: - Added expected creation procedure for the service launcher. - Added new "secure_port" configuration variable, for SSL standalone service. This way, if `is_secure` is True, the server will use `secure_port` (overrides `port` value). Date: - Improved support for RFC 3339 (a profile of ISO 8601) Removed obsolete and warnings: - removed usage of FILE_NAME - updated code to avoid implicit conversion from STRING_32 to STRING_8 - avoid uneed conversion to STRING_8 (when possible)
This commit is contained in:
@@ -50,7 +50,7 @@ feature {NONE} -- Initialization
|
||||
loop
|
||||
if ic.key.starts_with ("HTTP_") then
|
||||
if ic.key.is_valid_as_string_8 then
|
||||
http_meta_variables.force (ic.item, ic.key.as_string_8)
|
||||
http_meta_variables.force (ic.item, ic.key.to_string_8)
|
||||
else
|
||||
http_meta_variables.force (ic.item, utf.escaped_utf_32_string_to_utf_8_string_8 (ic.key))
|
||||
end
|
||||
|
||||
@@ -425,7 +425,7 @@ feature {NONE} -- Element change: CGI meta parameter related to PATH_INFO
|
||||
update_path_info
|
||||
-- Fix and update PATH_INFO value if needed
|
||||
local
|
||||
l_path_info: STRING
|
||||
l_path_info: READABLE_STRING_8
|
||||
do
|
||||
l_path_info := path_info
|
||||
|
||||
@@ -480,14 +480,14 @@ feature {NONE} -- Implementation: utilities
|
||||
end
|
||||
n := s.count
|
||||
check i >= 2 and i <= n end
|
||||
Result := s.substring (i - 1, s.count)
|
||||
Result := s.substring (i - 1, s.count).to_string_8
|
||||
else
|
||||
--| starts with one '/' and only one
|
||||
Result := s
|
||||
Result := s.to_string_8
|
||||
end
|
||||
elseif n = 1 then
|
||||
if s[1] = '/' then
|
||||
Result := s
|
||||
Result := s.to_string_8
|
||||
else
|
||||
create Result.make (2)
|
||||
Result.append_character ('/')
|
||||
|
||||
Reference in New Issue
Block a user