-
-
Notifications
You must be signed in to change notification settings - Fork 689
Closed
Labels
TypesChanges related to the TypeScript definitionsChanges related to the TypeScript definitionsbugSomething isn't workingSomething isn't working
Description
Bug Description
ConnectOptions interface doesn't include an origin field that's required for the HTTP CONNECT.
Furthermore, it appears that the agent.connect({}) currently fails to execute without the origin field.
Reproducible By
const agent = new Agent();
agent.connect({
origin: "https://example.com",
path: "/robots.txt"
});
This gives a TypeScript error for unknown "origin" field.
Expected Behavior
Origin is accepted.
Environment
Any
Metadata
Metadata
Assignees
Labels
TypesChanges related to the TypeScript definitionsChanges related to the TypeScript definitionsbugSomething isn't workingSomething isn't working