Skip to content

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?

for (var i in headers) {
// 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