mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
express: Request.host deprecated, use .hostname
This commit is contained in:
1 parent
c2b70ba731
commit
16c6bbf0c9
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