lib/rack/oauth2/server/rails/response_ext.rb in rack-oauth2-1.21.2 vs lib/rack/oauth2/server/rails/response_ext.rb in rack-oauth2-1.21.3
- old
+ new
@@ -19,13 +19,13 @@
ensure_finish do
@body
end
end
- def header
+ def headers
ensure_finish do
- @header
+ @headers
end
end
def finish
@finished = true
@@ -37,10 +37,10 @@
def finished?
!!@finished
end
def ensure_finish
- @status, @header, @body = finish unless finished?
+ @status, @headers, @body = finish unless finished?
yield
end
end
end
end