Use media_type as replacement for type_and_subtype_string in HTTP_CONTENT_TYPE
This commit is contained in:
@@ -16,7 +16,7 @@ feature -- Status report
|
||||
|
||||
valid_content_type (a_content_type: HTTP_CONTENT_TYPE): BOOLEAN
|
||||
do
|
||||
Result := a_content_type.same_type_and_subtype ({HTTP_MIME_TYPES}.application_x_www_form_encoded)
|
||||
Result := a_content_type.same_media_type ({HTTP_MIME_TYPES}.application_x_www_form_encoded)
|
||||
end
|
||||
|
||||
feature -- Execution
|
||||
|
||||
@@ -26,7 +26,7 @@ feature -- Status report
|
||||
|
||||
valid_content_type (a_content_type: HTTP_CONTENT_TYPE): BOOLEAN
|
||||
do
|
||||
Result := a_content_type.same_type_and_subtype ({HTTP_MIME_TYPES}.multipart_form_data)
|
||||
Result := a_content_type.same_media_type ({HTTP_MIME_TYPES}.multipart_form_data)
|
||||
end
|
||||
|
||||
feature -- Execution
|
||||
|
||||
Reference in New Issue
Block a user