Sha256: 55536341259ee65c093636eb0feedfb0ba6e9c27ce2feeaec32376ce2564d0c7

Contents?: true

Size: 264 Bytes

Versions: 1

Compression:

Stored size: 264 Bytes

Contents

module Rack
  class XRobotsTag
    VERSION = '1.3.0'

    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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-x_robots_tag-1.3.0 lib/rack/x_robots_tag.rb