mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47:00 +03:00
7 lines
226 B
TypeScript
7 lines
226 B
TypeScript
import { NextFunction, Request, Response } from "express";
|
|
import os from "os";
|
|
|
|
export function hostHeader(req: Request, res: Response, next: NextFunction): void {
|
|
res.header("SBSERVER-HOST", os.hostname());
|
|
next();
|
|
} |