diff --git a/middleman-core/lib/middleman-core/cli/build.rb b/middleman-core/lib/middleman-core/cli/build.rb index b8041060..2a9eaef1 100644 --- a/middleman-core/lib/middleman-core/cli/build.rb +++ b/middleman-core/lib/middleman-core/cli/build.rb @@ -97,9 +97,7 @@ module Middleman::Cli def shared_rack @_shared_rack ||= begin mock = ::Rack::MockSession.new(shared_server.to_rack_app) - sess = ::Rack::Test::Session.new(mock) - response = sess.get("__middleman__") - sess + ::Rack::Test::Session.new(mock) end end @@ -279,4 +277,4 @@ class ::Thor::Actions::CreateFile block.call unless pretend? end end -end \ No newline at end of file +end