New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(http): include transferCache when cloning HttpRequest #54939
fix(http): include transferCache when cloning HttpRequest #54939
Conversation
b07fbb4
to
f829824
Compare
6b9a647
to
12b50df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this.
Can you please update the commit message scope from common
to http
?
12b50df
to
6f244fc
Compare
Thanks @alan-agius4 for the quick review 🙂 |
6f244fc
to
8a90bb8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for your contribution
Can you please run update the golden files via |
Fixes a bug where HttpRequest.clone() does not include the transferCache property. Fixes angular#54924.
Refactor how boolean options are handled in HttpRequest.clone() method by using nullish coalescing operator
8a90bb8
to
89e3d25
Compare
Of course, done ✅ |
@@ -479,6 +482,10 @@ export class HttpRequest<T> { | |||
const url = update.url || this.url; | |||
const responseType = update.responseType || this.responseType; | |||
|
|||
// Carefully handle the transferCache to differentiate between | |||
// `false` and `undefined` in the update args. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now it also handles null
so mayby add that to comment : undefined or null
here and in other places that were edited. Also why not add move this logic together with withCredentials
and reportProgress
? becouse now
this comment is duplicated in lines 485 and 495
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: public-api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: public-api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: public-api
This PR was merged into the repository by commit b80434a. |
) Fixes a bug where HttpRequest.clone() does not include the transferCache property. Fixes angular#54924. PR Close angular#54939
angular#54939) Refactor how boolean options are handled in HttpRequest.clone() method by using nullish coalescing operator PR Close angular#54939
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Fixes #54924.
What is the new behavior?
Does this PR introduce a breaking change?
Other information