kopia lustrzana https://github.com/badgen/badgen.net
Fix req.hostname checking
rodzic
df3a6be9d8
commit
b4eea98f21
|
@ -48,7 +48,7 @@ export function badgenServe (handlers: BadgenServeHandlers): Function {
|
|||
// return serveApi(req, res, { params })
|
||||
// }
|
||||
|
||||
if (req.hostname.startsWith('flat.') && query.style !== undefined) {
|
||||
if (req.headers.host.startsWith('flat.') && query.style !== undefined) {
|
||||
query.style = 'flat'
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue