TypeError: Cannot read properties of undefined (reading 'Accept')
phawxby opened this issue · comments
It appears that normalizeHttpResponse()
in the event of undefined or an empty object creates new objects and returns them. This function is relying on side effects for the changes so if new objects are created they're not seen. The result is that if an undefined object is passed in you get an error. It should probably be more like
request = normalizeHttpResponse(request);