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

No files matched your search

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