Skip to content

Commit d50b3cb

Browse files
committed
For maintenance filter, response with http status code {HTTP_STATUS_CODE}.service_unavailable
1 parent 6481d2e commit d50b3cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/server/wsf/router/filter/wsf_maintenance_filter.e

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ feature -- Basic operations
6161
create h.make_with_count (1)
6262
h.put_content_length (s.count)
6363
h.put_content_type_text_plain
64+
res.set_status_code ({HTTP_STATUS_CODE}.service_unavailable)
6465
res.put_header_lines (h)
6566
res.put_string (s)
6667
else
@@ -69,7 +70,7 @@ feature -- Basic operations
6970
end
7071

7172
note
72-
copyright: "2011-2013, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Eiffel Software and others"
73+
copyright: "2011-2014, Jocelyn Fiat, Javier Velilla, Olivier Ligot, Colin Adams, Eiffel Software and others"
7374
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
7475
source: "[
7576
Eiffel Software

0 commit comments

Comments
 (0)