feat(common): two missing features in HttpClient (#17996)
- Add params to HttpRequest API - Add optional description to testing APIs
This commit is contained in:

committed by
Jason Aden

parent
37797e2b4e
commit
c81ad9d19d
@ -83,7 +83,7 @@ export class HttpXhrBackend implements HttpBackend {
|
||||
return new Observable((observer: Observer<HttpEvent<any>>) => {
|
||||
// Start by setting up the XHR object with request method, URL, and withCredentials flag.
|
||||
const xhr = this.xhrFactory.build();
|
||||
xhr.open(req.method, req.url);
|
||||
xhr.open(req.method, req.urlWithParams);
|
||||
if (!!req.withCredentials) {
|
||||
xhr.withCredentials = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user