Skip to content

Commit

Permalink
Fixes minor inconsistent bracket placement
Browse files Browse the repository at this point in the history
  • Loading branch information
n-thumann committed Jan 22, 2021
1 parent 92fd45e commit da9cda9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/station.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const router = Router();
router.get('/', async (req: Request, res: Response) => {
res.render('stations', {
stations: stationProvider.stations,
protocol: config['xspf_protocol'] || req.protocol,
protocol: config.xspf_protocol || req.protocol,
host: config.xspf_host || req.get('X-Forwarded-Host') || req.get('Host'),
pathPrefix: config.xspf_pathPrefix
});
Expand All @@ -18,7 +18,7 @@ router.get('/', async (req: Request, res: Response) => {
router.get('/download', (req: Request, res: Response) => {
res.setHeader('Content-Type', 'application/xspf+xml');
res.setHeader('Content-Disposition', 'attachment; filename="IPTV-ReStream.xspf"');
const protocol = config['xspf_protocol'] || req.protocol;
const protocol = config.xspf_protocol || req.protocol;
const host = config.xspf_host || req.get('X-Forwarded-Host') || req.get('Host');
const pathPrefix = config.xspf_pathPrefix;
res.write(xspfProvider.generateXSPF(`${protocol}://${host}${pathPrefix}`));
Expand All @@ -28,7 +28,7 @@ router.get('/download', (req: Request, res: Response) => {
router.get('/downloadm3u', (req: Request, res: Response) => {
res.setHeader('Content-Type', 'application/x-mpegURL');
res.setHeader('Content-Disposition', 'attachment; filename="IPTV-ReStream.m3u"');
const protocol = config['xspf_protocol'] || req.protocol;
const protocol = config.xspf_protocol || req.protocol;
const host = config.xspf_host || req.get('X-Forwarded-Host') || req.get('Host');
const pathPrefix = config.xspf_pathPrefix;
res.write(m3uProvider.generateM3U(`${protocol}://${host}${pathPrefix}`));
Expand Down

0 comments on commit da9cda9

Please sign in to comment.