We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4be2e96 commit 3ba0d58Copy full SHA for 3ba0d58
1 file changed
lib/tinyrails.rb
@@ -22,7 +22,13 @@ def call(_env)
22
23
controller = klass.new(_env)
24
text = controller.send(act)
25
- [200, { 'content-type' => 'text/html' }, [text]]
+
26
+ if result.is_a?(Array) && result.length == 3 && result[0].is_a?(Integer)
27
+ result
28
+ else
29
+ [200, { 'content-type' => 'text/html' }, [text]]
30
+ end
31
32
rescue NameError => e
33
no_controller_error(e)
34
rescue NoMethodError => e
0 commit comments