diff --git a/http-string-parser/http-string-parser-tests.ts b/http-string-parser/http-string-parser-tests.ts index 9c4116e5d7..db3686e712 100644 --- a/http-string-parser/http-string-parser-tests.ts +++ b/http-string-parser/http-string-parser-tests.ts @@ -38,5 +38,5 @@ function test_statusLine(): void { function test_headers(): void { var result: { [key: string]: string } = - parser.parseHeaders("Content-Type: text/html; charset=utf-8\r\nContent-Length: 256\r\n"); + parser.parseHeaders(["Content-Type: text/html; charset=utf-8", "Content-Length: 256"]); } \ No newline at end of file diff --git a/http-string-parser/http-string-parser.d.ts b/http-string-parser/http-string-parser.d.ts index 4239cd9df9..959d458dcd 100644 --- a/http-string-parser/http-string-parser.d.ts +++ b/http-string-parser/http-string-parser.d.ts @@ -34,5 +34,5 @@ declare module "http-string-parser" { export function parseResponse(responseString: string): ParseResponseResult; export function parseRequestLine(requestLineString: string): ParseRequestLineResult; export function parseStatusLine(statusLine: string): ParseStatusLineResult; - export function parseHeaders(headerLines: string): { [key: string]: string }; + export function parseHeaders(headerLines: string[]): { [key: string]: string }; }