Allow users to cancel a running crunch job by updating cancelled_at
[arvados.git] / services / api / app / controllers / application_controller.rb
index 348ed13d534cc7c260529a9c87ce65c100415800..dfe615309010f7dcaef20661ddcf83eb5a50412e 100644 (file)
@@ -354,4 +354,9 @@ class ApplicationController < ActionController::Base
       order: { type: 'string', required: false }
     }
   end
+  
+  def client_accepts_plain_text_stream
+    (request.headers['Accept'].split(' ') &
+     ['text/plain', '*/*']).count > 0
+  end
 end