mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00: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