Skip to content

Commit

Permalink
Support header injection.
Browse files Browse the repository at this point in the history
Signed-off-by: Mario A Chavez <[email protected]>
  • Loading branch information
Didde Brockman authored and mariochavez committed Jun 10, 2014
1 parent e3e1b48 commit f36998f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/api_taster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ module ApiTaster
mattr_accessor :route_path
self.route_path = "#{Rails.root}/lib/api_tasters"

mattr_accessor :global_headers
self.global_headers = {}

def self.routes(&block)
ApiTaster::RouteCollector.routes << block
end
Expand Down

0 comments on commit f36998f

Please sign in to comment.