mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
clean up
This commit is contained in:
@@ -25,10 +25,9 @@ function create (env, ctx) {
|
||||
res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization, Content-Length, X-Requested-With');
|
||||
|
||||
// intercept OPTIONS method
|
||||
if ('OPTIONS' == req.method) {
|
||||
if ('OPTIONS' === req.method) {
|
||||
res.send(200);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user