mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-31 11:01:53 +08:00
Chore: update ESLint config
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
/* global $request, $response, $done */
|
||||
|
||||
const url = $request.url;
|
||||
const body = url.endsWith('region') || url.endsWith('region/')
|
||||
? 'OK'
|
||||
: $response.body
|
||||
: $response.body;
|
||||
|
||||
if ($request.method === 'OPTION') {
|
||||
$done({})
|
||||
$done({});
|
||||
} else {
|
||||
$done({
|
||||
status: 200,
|
||||
@@ -18,5 +20,5 @@ if ($request.method === 'OPTION') {
|
||||
'Access-Control-Expose-Headers': 'Server,range,hdntl,hdnts,Akamai-Mon-Iucid-Ing,Akamai-Mon-Iucid-Del,Akamai-Request-BC',
|
||||
'Access-Control-Max-Age': '86400'
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user