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

Don't throw error in CORS hook #36

Merged
merged 1 commit into from
Mar 16, 2016
Merged

Don't throw error in CORS hook #36

merged 1 commit into from
Mar 16, 2016

Conversation

kevinburkeshyp
Copy link

Previously preflight requests would cause a TypeError in cors/index.js - see
balderdashy#3662 for more information on how
this occurs.

Fixes the error by converting any undefined values to a dictionary before
continuing processing- it's not perfect but it solves the problem.

Previously preflight requests would cause a TypeError in cors/index.js - see
balderdashy#3662 for more information on how
this occurs.

Fixes the error by converting any `undefined` values to a dictionary before
continuing processing- it's not perfect but it solves the problem.
/**
* Module dependencies.
*/
/*
Copy link
Author

Choose a reason for hiding this comment

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

Removing tabs

@jterk
Copy link

jterk commented Mar 16, 2016

LGTM

@rargulati
Copy link

+1 thanks for doing this.

@kevinburkeshyp kevinburkeshyp merged commit ef3f7de into master Mar 16, 2016
@kevinburkeshyp kevinburkeshyp deleted the fix-cors branch March 16, 2016 19:10
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.

3 participants