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] 返回内容不会被识别为json格式 close #39 #40

Merged
merged 1 commit into from
Jan 28, 2020

Conversation

RobertIndie
Copy link
Contributor

No description provided.

@rexwangcc rexwangcc self-requested a review January 28, 2020 16:45
Copy link
Contributor

@rexwangcc rexwangcc left a comment

Choose a reason for hiding this comment

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

LGTM. Will merge this PR, thanks for the contribution!

@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
from flask import Flask
from werkzeug.wrappers import Response as ResponseBase
Copy link
Contributor

Choose a reason for hiding this comment

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

optional: Flask itself already provides a wrapper around this werkzeug.wrappers. Response , which can be imported by from flask import Response. But this also works!

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