1 parent
a8f689e39c
commit
c340aec110
59 files changed
+1108
-1590
No files matched your search
@@ -60,7 +60,7 @@ async function runningHost(t, { Context, Connection }, { withWebServer = true }
|
||||
// node:http permits the hostile Host header needed to exercise rebinding
|
||||
// rejection; Fetch can replace that forbidden header with the URL's host.
|
||||
const request = (method = 'status', { payload = null, headers = {}, cookie = true, body } = {}) => new Promise((resolve, reject) => {
|
||||
const outgoing = httpRequest(`${base}/geek2api/${method}`, {
|
||||
const outgoing = httpRequest(`${base}/infstarapi/${method}`, {
|
||||
method: 'POST',
|
||||
headers: { 'content-type': 'application/json', ...(cookie ? { cookie: COOKIE } : {}), ...headers },
|
||||
}, incoming => {
|
||||
|
||||
Reference in new issue
Block a user