We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cbf7a2 commit e0db41dCopy full SHA for e0db41d
packages/protocol-http/src/Fields.ts
@@ -22,7 +22,7 @@ export class Fields {
22
* @param field The {@link Field} to set.
23
*/
24
public setField(field: Field): void {
25
- this.entries[field.name] = field;
+ this.entries[field.name.toLowerCase()] = field;
26
}
27
28
/**
@@ -33,7 +33,7 @@ export class Fields {
33
* @returns The {@link Field} if it exists.
34
35
public getField(name: string): Field | undefined {
36
- return this.entries[name];
+ return this.entries[name.toLowerCase()];
37
38
39
@@ -42,7 +42,7 @@ export class Fields {
42
* @param name Name of the entry to delete.
43
44
public removeField(name: string): void {
45
- delete this.entries[name];
+ delete this.entries[name.toLowerCase()];
46
47
48
0 commit comments