8000 fix for #58 by dutronlabs · Pull Request #59 · flask-api/flask-api · GitHub
[go: up one dir, main page]

Skip to content

fix for #58 #59

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

Merged
merged 5 commits into from
Jul 20, 2016
Merged

fix for #58 #59

merged 5 commits into from
Jul 20, 2016

Conversation

dutronlabs
Copy link
Contributor

I came across the issue recently for #58 as well, and saw the change was relatively simple.

I added some tests in there as well to check the custom error handler was working okay, looks good on my end.

@jacebrowning
Copy link
Member

It looks like this will need a way to handle both Flask 0.10.x and 0.11.x.

@dutronlabs
Copy link
Contributor Author

Sounds good, I'll make those changes shortly.

@@ -116,3 +123,7 @@ def create_url_adapter(self, request):
self.config['SERVER_NAME'],
script_name=self.config['APPLICATION_ROOT'] or '/',
url_scheme=self.config['PREFERRED_URL_SCHEME'])

@staticmethod
def get_minor_version():
Copy link
Member
@jacebrowning jacebrowning Jul 19, 2016

Choose a reason for hiding this comment

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

I wonder if this function might make more sense to live in compat.py and be reworked to something like is_flask_0_10()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, can do that.

Copy link
Member

Choose a reason for hiding this comment

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

Or is_flask_10 or is_flask_legacy. Whatever makes most sense to you.

@dutronlabs
Copy link
Contributor Author

i see the issue, WIP

@jacebrowning
Copy link
Member

👍 Looks good to me. All set to merge?

@dutronlabs
Copy link
Contributor Author

Looks good to me.

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.

2 participants
0