response.headers is not iterable error #445
Labels
hacktoberfest
Issues for participation in Hacktoberfest
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
Hi,
I'm using
@octokit/rest
as my GH rest client and I found a possible bug inrequest.js/src/fetch-wrapper.ts
Line 50 in 92e7e1c
headers
as a non-iterable object. In that case,@octokit/request
throws an error sayingresponse.headers is not iterable
.I'd expect the package to iterate the
headers
attribute only if it exists and is iterable...The text was updated successfully, but these errors were encountered: