@@ -5,7 +5,7 @@ module Actions
55 def serve_snapshot ( env )
66 MiniProfiler . authorize_request
77 status = 200
8- headers = { 'Content-Type ' => 'text/html' }
8+ headers = { 'content-type ' => 'text/html' }
99 qp = Rack ::Utils . parse_nested_query ( env [ 'QUERY_STRING' ] )
1010 if group_name = qp [ "group_name" ]
1111 list = @storage . snapshots_group ( group_name )
@@ -56,9 +56,9 @@ def serve_file(env, file_name:)
5656 resources_env [ 'PATH_INFO' ] = file_name
5757
5858 if Gem ::Version . new ( Rack . release ) >= Gem ::Version . new ( "2.1.0" )
59- rack_file = Rack ::Files . new ( resources_root , 'Cache-Control ' => "max-age=#{ cache_control_value } " )
59+ rack_file = Rack ::Files . new ( resources_root , 'cache-control ' => "max-age=#{ cache_control_value } " )
6060 else
61- rack_file = Rack ::File . new ( resources_root , 'Cache-Control ' => "max-age=#{ cache_control_value } " )
61+ rack_file = Rack ::File . new ( resources_root , 'cache-control ' => "max-age=#{ cache_control_value } " )
6262 end
6363
6464 rack_file . call ( resources_env )
@@ -93,11 +93,11 @@ def serve_results(env)
9393 # If we're an XMLHttpRequest, serve up the contents as JSON
9494 if request . xhr?
9595 result_json = page_struct . to_json
96- [ 200 , { 'Content-Type ' => 'application/json' } , [ result_json ] ]
96+ [ 200 , { 'content-type ' => 'application/json' } , [ result_json ] ]
9797 else
9898 # Otherwise give the HTML back
9999 html = generate_html ( page_struct , env )
100- [ 200 , { 'Content-Type ' => 'text/html' } , [ html ] ]
100+ [ 200 , { 'content-type ' => 'text/html' } , [ html ] ]
101101 end
102102 end
103103
0 commit comments