Merge pull request #25994 from OliverJAsh/oja/express/response-set-header-value-array

Express: `Response` `set`: allow array value
This commit is contained in:
Daniel Rosenwasser
2018-05-27 01:22:21 -07:00
committed by GitHub

View File

@@ -707,6 +707,7 @@ export interface Response extends http.ServerResponse, Express.Response {
*/
set(field: any): Response;
set(field: string, value?: string): Response;
set(field: string, value?: string[]): Response;
header(field: any): Response;
header(field: string, value?: string): Response;