fix(http): Update types for TypeScript nullability support
This reverts commit 268884296a
.
This commit is contained in:

committed by
Tobias Bosch

parent
014594fe8f
commit
ec028b8109
@ -115,7 +115,7 @@ export class XHRConnection implements Connection {
|
||||
if (!req.headers.has('Accept')) {
|
||||
req.headers.append('Accept', 'application/json, text/plain, */*');
|
||||
}
|
||||
req.headers.forEach((values, name) => _xhr.setRequestHeader(name, values.join(',')));
|
||||
req.headers.forEach((values, name) => _xhr.setRequestHeader(name !, values.join(',')));
|
||||
|
||||
// Select the correct buffer type to store the response
|
||||
if (req.responseType != null && _xhr.responseType != null) {
|
||||
|
Reference in New Issue
Block a user