Skip to content

Commit

Permalink
Merge pull request lepture#202 from youtux/master
Browse files Browse the repository at this point in the history
Fix compliance_fixes not being correctly checked
  • Loading branch information
tonyseek committed May 3, 2015
2 parents 2e5e1c4 + 1454a6b commit 77514db
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions flask_oauthlib/contrib/client/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,12 @@ def make_oauth_session(self, **kwargs):

# patches session
compliance_fixes = self.compliance_fixes
if compliance_fixes.startswith('.'):
compliance_fixes = \
'requests_oauthlib.compliance_fixes' + compliance_fixes
apply_fixes = import_string(compliance_fixes)
oauth = apply_fixes(oauth)
if compliance_fixes is not None:
if compliance_fixes.startswith('.'):
compliance_fixes = \
'requests_oauthlib.compliance_fixes' + compliance_fixes
apply_fixes = import_string(compliance_fixes)
oauth = apply_fixes(oauth)

return oauth

Expand Down

0 comments on commit 77514db

Please sign in to comment.