From 3c2360723ae44c09ef563b980abcdf04532cb86d Mon Sep 17 00:00:00 2001 From: MIZUNE Pine Date: Wed, 15 Oct 2014 20:16:45 +0900 Subject: [PATCH] Fix bug --- http-string-parser/http-string-parser-tests.ts | 2 +- http-string-parser/http-string-parser.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }; }