def apply(self, callback, context):
        def wrapper(*args, **kwargs):
            '''Check request and raise if its not https'''
            if request.headers.get('X-Forwarded-Proto', 'http') != 'https':
                logger.debug("Non http request blocked: %s" % request)
                raise self.default_non_ssl_http_response
            else:
                return callback(*args, **kwargs)

        return wrapper
Remove the named header from this header object.
dataset/ETHPy150Open biicode/bii-server/rest/bottle_plugins/non_ssl_blocker_bottle_plugin.py/NonSSLBlockerBottlePlugin.apply--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/web/http_headers.py/Headers.removeHeader