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 Access-Control-Max-Age value if undefined on service #338

Merged
merged 1 commit into from
Sep 28, 2015

Conversation

leplatrem
Copy link
Contributor

Otherwise the header is always present a False value.

@Natim
Copy link
Contributor

Natim commented Sep 25, 2015

r+

for meth, view, args in self.definitions:
if method and meth.upper() == method.upper():
return args.get('cors_max_age', False)
max_age = args.get('cors_max_age', None)
Copy link
Contributor

Choose a reason for hiding this comment

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

we should break here to avoid continue the for loop. Only the first value matters.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

almet added a commit that referenced this pull request Sep 28, 2015
Fix Access-Control-Max-Age value if undefined on service
@almet almet merged commit c71b5c4 into master Sep 28, 2015
@almet almet deleted the fix-max-age-if-undefined branch September 28, 2015 08:12
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