Tag: jupyter notebook

Jupyterhub可configuration的Http代理问题

我一直在使用Jupyterhub的可configurationHttp代理,我一直在为代理处理客户端的ssl证书而不必使用命令行选项来添加必要的选项。 我的主要目标是我想要接受客户端请求到代理并将其证书信息添加到标题。 一旦在标题中,我将使用jupyterhub的身份validation器制作一个用户名。 我的问题是,当我使用proxy.on('proxyReq方法可用于http代理设置标题,我得到这个错误: [Error: Can't set headers after they are sent.] 我一直在查看所有的代码,看看正在写或发送的响应/请求,但我找不到它。 这里是ConfigurableProxy函数代码,如果需要,我可以给你更多的代码: function ConfigurableProxy (options) { var that = this; this.options = options || {}; this.trie = new trie.URLTrie(); this.auth_token = this.options.auth_token; this.includePrefix = options.includePrefix === undefined ? true : options.includePrefix; this.routes = {}; this.host_routing = this.options.host_routing; this.error_target = options.error_target; if (this.error_target && […]