Which @angular/* package(s) are the source of the bug?
platform-browser
Is this a regression?
Yes
Description
The snippet below creates a request with header content-type: image/jpeg, application/json
let headers = new HttpHeaders();
headers = headers.set('content-type', 'image/jpeg');
const req = new HttpRequest("PUT", somePutUrl, { data: someData }, {
headers,
reportProgress: true,
responseType: "text",
});
return this.client.request(req);
Change the case and I get the expected behaviour:
let headers = new HttpHeaders();
headers = headers.set('Content-Type', 'image/jpeg');
const req = new HttpRequest("PUT", somePutUrl, { data: someData }, {
headers,
reportProgress: true,
responseType: "text",
});
return this.client.request(req);
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run ng version)
Angular CLI: 17.1.0
Node: 18.16.0
Package Manager: npm 9.5.1
OS: darwin arm64
Angular: 17.1.0
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1701.0
@angular-devkit/build-angular 17.1.0
@angular-devkit/core 17.1.0
@angular-devkit/schematics 17.1.0
@angular/cdk 17.0.1
@angular/material 17.0.1
@schematics/angular 17.1.0
rxjs 7.8.1
typescript 5.2.2
zone.js 0.14.2
Anything else?
The problem could be here
Which @angular/* package(s) are the source of the bug?
platform-browser
Is this a regression?
Yes
Description
The snippet below creates a request with header
content-type: image/jpeg, application/jsonChange the case and I get the expected behaviour:
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run
ng version)Anything else?
The problem could be here