-
Notifications
You must be signed in to change notification settings - Fork 27k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: common/httpIssues related to HTTP and HTTP ClientIssues related to HTTP and HTTP Clientstate: confirmedstate: has PR
Milestone
Description
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
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: common/httpIssues related to HTTP and HTTP ClientIssues related to HTTP and HTTP Clientstate: confirmedstate: has PR