Fixed minor issue, added test cases to check language negotiation.

This commit is contained in:
jvelilla
2011-11-30 08:56:13 -03:00
parent 6feaf5757f
commit 9b9bc1f190
2 changed files with 36 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ feature -- Language Negotiation
if header.is_empty then
-- the request has no Accept header, ie the header is empty, in this case we use the default format
Result.set_acceptable (TRUE)
Result.set_language_type (mime_default)
Result.set_language_type (language_default)
else
-- select the best match, server support, client preferences
language_match := language.best_match (server_language_supported, header)