lib/geminabox/server.rb in geminabox-1.0.0 vs lib/geminabox/server.rb in geminabox-1.0.1

- old
+ new

@@ -117,10 +117,10 @@ get '/reindex' do serialize_update do params[:force_rebuild] ||= 'true' unless %w(true false).include? params[:force_rebuild] - error_response(400, "force_rebuild parameter must be either of true or false, but was #{params[:force_rebuild]}") + error_response(400, "force_rebuild parameter must be either of true or false") end force_rebuild = params[:force_rebuild] == 'true' self.class.reindex(force_rebuild) redirect url("/") end