Tag: pastebin

nodejs http_outgoing与pastebin API崩溃

我写了一个节点应用程序,旁边的其他很酷的东西,它也给出了一个从一个txt文件创build的应用程序的pastebin的链接。 它在OS X的本地macbook上完美工作。但在我租用的debian服务器上,当有人请求链接到pastebin /请求时,显示了该应用程序创build一个pastebin 编辑:我有这个工作以前在我的服务器以及。 现在我只是重新安排了一些代码,如connection.js,database.js等独立的模块 我用#pastebin#replace了pastebin模块的path,如果需要的话我会读取它们。 但是,它们都链接到pastebin-js / node_modules / request / request.js中的东西 这是我用于pastebin的库: https : //github.com/j3lte/pastebin-js _http_outgoing.js:339 throw new TypeError( ^ TypeError: Header name must be a valid HTTP Token ["Cache-Control:"] at ClientRequest.OutgoingMessage.setHeader (_http_outgoing.js:339:11) at new ClientRequest (_http_client.js:86:14) at Object.exports.request (http.js:31:10) at Request.start (#pastebin#) at Request.write (#pastebin#) at end (#pastebin#) at #pastebin# at […]