Compare commits
1
Commits
c205c1bdaf
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a433f57a58
|
No files matched your search
+2
-1
@@ -986,7 +986,8 @@ app.get('/launcher/versions', context => launcherVersionsHandler(context), {
|
||||
hide: true
|
||||
})
|
||||
),
|
||||
clientplatform: t.Optional(t.String())
|
||||
clientplatform: t.Optional(t.String()),
|
||||
authorization: t.Optional(t.String())
|
||||
})
|
||||
})
|
||||
app.get('/launcher/latest', launcherLatestHandler, {
|
||||
|
||||
@@ -9,6 +9,11 @@ export const handler = async (context: Context) => {
|
||||
return jsonResponse({ error: 'Failed to connect to database' }, 500)
|
||||
const { connection, db } = dbResult
|
||||
|
||||
const authorization =
|
||||
context.headers.authorization?.trim() == '' ||
|
||||
context.headers.authorization == null
|
||||
? null
|
||||
: context.headers.authorization
|
||||
const clientplatform = context.headers.clientplatform
|
||||
const platform = clientplatform?.split('-')[0]
|
||||
const arch = clientplatform?.split('-')[1]
|
||||
|
||||
Reference in new issue
Block a user