Created
February 15, 2012 14:57
-
-
Save beanieboi/1836381 to your computer and use it in GitHub Desktop.
Rails Metal DataStreaming broken?!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Api::V1::OpenRateController < ActionController::Metal | |
include ActionController::DataStreaming | |
def show | |
tracking_gif = "GIF89a\x03\x00\x02\x00\x80\x00\x00\xC0\xC0\xC0\x00\x00\x00!\xF9\x04\x01\x00\x00\x00\x00,\x00\x00\x00\x00\x03\x00\x02\x00\x00\x02\x02\x84_\x00;".freeze | |
send_data tracking_gif | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Including
include ActionController::RackDelegation
solves this.