Make open source
This commit is contained in:
0
lib/assets/.keep
Normal file
0
lib/assets/.keep
Normal file
16
lib/rack/x_robots_tag.rb
Normal file
16
lib/rack/x_robots_tag.rb
Normal file
@ -0,0 +1,16 @@
|
||||
module Rack
|
||||
#
|
||||
# Set X-Robots-Tag header to ask search engines not to index us.
|
||||
#
|
||||
class XRobotsTag
|
||||
def initialize(app)
|
||||
@app = app
|
||||
end
|
||||
|
||||
def call(env)
|
||||
status, headers, response = @app.call(env)
|
||||
headers['X-Robots-Tag'] = 'none'
|
||||
[status, headers, response]
|
||||
end
|
||||
end
|
||||
end
|
0
lib/tasks/.keep
Normal file
0
lib/tasks/.keep
Normal file
Reference in New Issue
Block a user