This commit is contained in:
MIZUNE Pine 2014-10-15 20:16:45 +09:00
parent 8abb240eea
commit 3c2360723a
2 changed files with 2 additions and 2 deletions

View File

@ -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"]);
}

View File

@ -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 };
}