Skip to content

Commit

Permalink
String as return
Browse files Browse the repository at this point in the history
If the route return code is an int, sinatra use it as http status code
  • Loading branch information
tclavier committed Dec 12, 2014
1 parent 9685ec8 commit 02973a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extreme_startup/web_server.rb
Expand Up @@ -133,7 +133,7 @@ def to_json(*a)
end

post '/advance_round' do
question_factory.advance_round
question_factory.advance_round.to_s
end

post '/pause' do
Expand Down

0 comments on commit 02973a6

Please sign in to comment.