Skip to content

Commit a204ca0

Browse files
committed
handle options requests
Signed-off-by: Alexis Reigel <[email protected]>
1 parent 5d193e6 commit a204ca0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

template/ruby-http/index.rb

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010

1111
handler = Handler.new
1212

13+
options '/*' do
14+
res, res_headers, status = handler.run request.body, request.env
15+
16+
[status || 204, res_headers, res]
17+
end
18+
1319
get '/*' do
1420
res, res_headers, status = handler.run request.body, request.env
1521

0 commit comments

Comments
 (0)