mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-10 11:50:49 +08:00
Fix bug
This commit is contained in:
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
@@ -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 };
|
||||
}
|
||||
Reference in new issue
Block a user