Setup: Unicorn behind Nginx installation with SSL. Latest Discourse (master). .zip uploads are allowed.
Operation: download an uploaded .zip file.
Attempting GET request from authenticated user in Chrome at https://example.com/uploads/default/2842/e77595f6cc30a53c.zip
Result: Failed to load resource: net::ERR_INVALID_RESPONSE. Grey page.
Production log.
Started GET "/uploads/default/2842/e77595f6cc30a53c.zip" for 109.0.230.82 at 2015-05-13 12:04:21 +0200
Processing by UploadsController#show as HTML
Parameters: {"site"=>"default", "id"=>"2842", "sha"=>"e77595f6cc30a53c", "extension"=>"zip"}
Sent file /home/discourse/www/discourse/releases/20150513094508/public/uploads/default/2842/e77595f6cc30a53c.zip (0.1ms)
Completed 200 OK in 57ms (ActiveRecord: 17.4ms)
Started GET "/home/discourse/www/discourse/releases/20150513094508/public/uploads/default/2842/e77595f6cc30a53c.zip" for 109.0.230.82$
ActionController::RoutingError (No route matches [GET] "/home/discourse/www/discourse/releases/20150513094508/public/uploads/default/$
config/initializers/quiet_logger.rb:10:in `call_with_quiet_assets'
config/initializers/silence_logger.rb:26:in `call'
lib/middleware/request_tracker.rb:70:in `call'
lib/scheduler/defer.rb:85:in `process_client'
lib/middleware/unicorn_oobgc.rb:80:in `process_client'
Processing by ExceptionsController#not_found as HTML
Rendered exceptions/not_found.html.erb within layouts/no_ember (13.8ms)
Rendered layouts/_head.html.erb (0.1ms)
Rendered common/_special_font_face.html.erb (0.4ms)
Rendered common/_discourse_stylesheet.html.erb (0.3ms)
Rendered application/_header.html.erb (0.1ms)
Rendered text template (0.0ms)
Completed 404 Not Found in 23ms (Views: 1.6ms | ActiveRecord: 5.2ms)
I do not yet understand what is triggering the second request, and why the operation fails even though the first request returns a HTTP 200.