mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Fix bug
This commit is contained in:
parent
8abb240eea
commit
3c2360723a
@ -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"]);
|
||||
}
|
||||
2
http-string-parser/http-string-parser.d.ts
vendored
2
http-string-parser/http-string-parser.d.ts
vendored
@ -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 };
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user