Update server_middleware.rb