mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-12 12:10:48 +08:00
Merge pull request #4443 from elisee/patch-4
express: Request.host has been deprecated, use .hostname instead
This commit is contained in:
commit
382866260f
1 file changed
+5
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