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

fix races in http cors #1835

Merged
merged 1 commit into from
Oct 20, 2015
Merged

fix races in http cors #1835

merged 1 commit into from
Oct 20, 2015

Conversation

miolini
Copy link
Contributor

@miolini miolini commented Oct 12, 2015

License: MIT
Signed-off-by: Artem Andreenko mio@volmy.com

License: MIT
Signed-off-by: Artem Andreenko <mio@volmy.com>
@jbenet jbenet added the backlog label Oct 12, 2015
@miolini
Copy link
Contributor Author

miolini commented Oct 12, 2015

@jbenet I guess travis failed on different problem.

@jbenet
Copy link
Member

jbenet commented Oct 14, 2015

Thanks @miolini -- LGTM @whyrusleeping ?

@whyrusleeping
Copy link
Member

Yeap, LGTM.


for _, o := range cfg.CORSOpts.AllowedOrigins {
origins := cfg.AllowedOrigins()
for _, o := range origins {
Copy link
Member

Choose a reason for hiding this comment

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

could be written as:

for _,o := range cfg.AllowedOrigins() {

But not a big deal, i'm fine merging without.

jbenet added a commit that referenced this pull request Oct 20, 2015
@jbenet jbenet merged commit 27eece3 into ipfs:master Oct 20, 2015
@jbenet jbenet removed the backlog label Oct 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants