mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-28 12:43:06 +08:00
Merge pull request #4443 from elisee/patch-4
express: Request.host has been deprecated, use .hostname instead
This commit is contained in:
Vendored
+5
@@ -349,6 +349,11 @@ declare module "express" {
|
||||
/**
|
||||
* Parse the "Host" header field hostname.
|
||||
*/
|
||||
hostname: string;
|
||||
|
||||
/**
|
||||
* @deprecated Use hostname instead.
|
||||
*/
|
||||
host: string;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user