removed unwanted set_status_code, since we already use put_header to set the status code.
This commit is contained in:
@@ -71,7 +71,6 @@ feature -- Execution
|
|||||||
|
|
||||||
execute_unauthorized (ctx: C; req: WSF_REQUEST; res: WSF_RESPONSE)
|
execute_unauthorized (ctx: C; req: WSF_REQUEST; res: WSF_RESPONSE)
|
||||||
do
|
do
|
||||||
res.set_status_code ({HTTP_STATUS_CODE}.unauthorized)
|
|
||||||
res.put_header ({HTTP_STATUS_CODE}.unauthorized, Void)
|
res.put_header ({HTTP_STATUS_CODE}.unauthorized, Void)
|
||||||
res.put_string ("Unauthorized")
|
res.put_string ("Unauthorized")
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ feature -- Helper
|
|||||||
i := i + 1
|
i := i + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
res.set_status_code ({HTTP_STATUS_CODE}.unsupported_media_type)
|
|
||||||
res.put_header ({HTTP_STATUS_CODE}.unsupported_media_type, << ["Content-Type", "text/plain"], ["Accept", accept_s]>>)
|
res.put_header ({HTTP_STATUS_CODE}.unsupported_media_type, << ["Content-Type", "text/plain"], ["Accept", accept_s]>>)
|
||||||
if accept_s /= Void then
|
if accept_s /= Void then
|
||||||
res.put_string ("Unsupported request content-type, Accept: " + accept_s + "%N")
|
res.put_string ("Unsupported request content-type, Accept: " + accept_s + "%N")
|
||||||
@@ -66,7 +65,6 @@ feature -- Helper
|
|||||||
local
|
local
|
||||||
s: STRING
|
s: STRING
|
||||||
do
|
do
|
||||||
res.set_status_code ({HTTP_STATUS_CODE}.method_not_allowed)
|
|
||||||
create s.make (25)
|
create s.make (25)
|
||||||
across
|
across
|
||||||
a_methods as c
|
a_methods as c
|
||||||
@@ -77,7 +75,6 @@ feature -- Helper
|
|||||||
end
|
end
|
||||||
s.append_string (c.item)
|
s.append_string (c.item)
|
||||||
end
|
end
|
||||||
res.set_status_code ({HTTP_STATUS_CODE}.method_not_allowed)
|
|
||||||
res.put_header ({HTTP_STATUS_CODE}.method_not_allowed, <<
|
res.put_header ({HTTP_STATUS_CODE}.method_not_allowed, <<
|
||||||
["Content-Type", {HTTP_MIME_TYPES}.text_plain],
|
["Content-Type", {HTTP_MIME_TYPES}.text_plain],
|
||||||
["Allow", s]
|
["Allow", s]
|
||||||
|
|||||||
Reference in New Issue
Block a user