lib/rooftop/middleware/headers.rb in rooftop-0.0.7.4 vs lib/rooftop/middleware/headers.rb in rooftop-0.1.1
- old
+ new
@@ -3,11 +3,11 @@
def call(env)
unless Rooftop.configuration.api_token.nil?
env[:request_headers]["Api-Token"] = Rooftop.configuration.api_token
end
- if Rooftop.preview
- env[:request_headers]['preview'] = "true"
+ if Rooftop.include_drafts
+ env[:request_headers]['include-drafts'] = "true"
end
Rooftop.configuration.extra_headers.each do |key,value|
env[:request_headers][key.to_s] = value
end