Skip to content

Commit 3c23607

Browse files
committed
Fix bug
1 parent 8abb240 commit 3c23607

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

http-string-parser/http-string-parser-tests.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ function test_statusLine(): void {
3838

3939
function test_headers(): void {
4040
var result: { [key: string]: string } =
41-
parser.parseHeaders("Content-Type: text/html; charset=utf-8\r\nContent-Length: 256\r\n");
41+
parser.parseHeaders(["Content-Type: text/html; charset=utf-8", "Content-Length: 256"]);
4242
}

http-string-parser/http-string-parser.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ declare module "http-string-parser" {
3434
export function parseResponse(responseString: string): ParseResponseResult;
3535
export function parseRequestLine(requestLineString: string): ParseRequestLineResult;
3636
export function parseStatusLine(statusLine: string): ParseStatusLineResult;
37-
export function parseHeaders(headerLines: string): { [key: string]: string };
37+
export function parseHeaders(headerLines: string[]): { [key: string]: string };
3838
}

0 commit comments

Comments
 (0)