Always set the content type when it is known for node view.

This commit is contained in:
Jocelyn Fiat
2017-03-30 14:28:00 +02:00
parent 3072b99151
commit cd48fe182a
6 changed files with 21 additions and 8 deletions

View File

@@ -218,9 +218,7 @@ feature -- Hooks
if api.user_is_authenticated then
r.add_error_message ("You are already signed in!")
elseif req.is_get_request_method then
r.set_value ("Login", "optional_content_type")
r.set_optional_content_type ("Login")
elseif req.is_post_request_method then
create s.make_empty
if attached req.string_item ("openid") as p_openid then