Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Bug 1313395 - Forward several headers in websocket upgrade requests #6373

Merged
merged 1 commit into from
Apr 4, 2016

Conversation

a13m
Copy link
Contributor

@a13m a13m commented Mar 23, 2016

No description provided.

@tiwillia
Copy link
Member

This LGTM but I don't know much about the subject matter. @Miciah are you familiar enough with this to review?


/* Set X-Client-IP HTTP extension header. */
zheaders.headers['X-Client-IP'] = xff;

Copy link
Contributor

Choose a reason for hiding this comment

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

Does case matter here? We're sometimes using lower-case, sometimes using capitals.

HTTP is supposed to be case-insensitive, the documentation for the http module indicates Node.js normalises headers to lower-case when they are received, and as far as I can tell the http module's accessors do the same, so lower-case seems to be preferred in Node.js (although some examples in the documentation use capitals). However, the documentation for the ws module doesn't say anything at all about case, and we are constructing and passing in the headers object ourselves rather than using any sort of accessor, so I'm wary of making assumptions.

@bparees, does this fall within your expertise?

Copy link
Contributor

Choose a reason for hiding this comment

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

not particularly, but i'd second your belief that case is irrelevant, so it's basically aesthetics.

@Miciah
Copy link
Contributor

Miciah commented Apr 4, 2016

openshift-bot, please [merge]!

@openshift-bot
Copy link

Online Merge Results: SUCCESS (https://ci.dev.openshift.redhat.com/jenkins/job/merge_pull_requests/6721/) (Image: devenv_5781)

@openshift-bot
Copy link

Evaluated for online merge up to bc5f3cc

@openshift-bot openshift-bot merged commit 0324ee4 into openshift:master Apr 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants