Skip to content
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

#190 fix "Cannot read property 'headers' of undefined" #191

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

d9k
Copy link

@d9k d9k commented Jul 29, 2021

No description provided.

@D-Pow
Copy link

D-Pow commented Nov 7, 2021

This is actually a very important PR. Can someone please review it?

It only has a couple of lines changed, and changed in such a way that it actually reads the response headers instead of a makeshift hack around setting a global headers object.

Not to mention that global variables are substantially more prone to bugs than generated/object instance fields. i.e. var headers should be response.headers and/or get headers() {...}.

@AlexanderKidd
Copy link

Can this get merged in or are no new releases planned?

// Cookie headers are excluded
if (i !== "set-cookie" && i !== "set-cookie2") {
result += i + ": " + response.headers[i] + "\r\n";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants