mirror of https://github.com/hunshcn/gh-proxy
fix: Correct type annotation error in worker version
Fixed a type annotation error, changing incorrect "RequestInit" to the correct "ResponseInit".pull/105/head
parent
4d1ac0a5f0
commit
f9408d1340
2
index.js
2
index.js
|
@ -13,7 +13,7 @@ const Config = {
|
||||||
|
|
||||||
const whiteList = [] // 白名单,路径里面有包含字符的才会通过,e.g. ['/username/']
|
const whiteList = [] // 白名单,路径里面有包含字符的才会通过,e.g. ['/username/']
|
||||||
|
|
||||||
/** @type {RequestInit} */
|
/** @type {ResponseInit} */
|
||||||
const PREFLIGHT_INIT = {
|
const PREFLIGHT_INIT = {
|
||||||
status: 204,
|
status: 204,
|
||||||
headers: new Headers({
|
headers: new Headers({
|
||||||
|
|
Loading…
Reference in New Issue