flask_oauthlib/contrib/apps.py
def change_weibo_header(uri, headers, body):
    """Since weibo is a rubbish server, it does not follow the standard,
    we need to change the authorization header for it."""
    auth = headers.get('Authorization')
    if auth:
        auth = auth.replace('Bearer', 'OAuth2')
        headers['Authorization'] = auth
    return uri, headers, body
def change_weibo_header(uri, headers, body):
    auth = headers.get('Authorization')
    if auth:
        auth = auth.replace('Bearer', 'OAuth2')
        headers['Authorization'] = auth
    return uri, headers, body
def change_weibo_header ( uri , headers , body ) : auth = headers . get ( 'Authorization' ) if auth : auth = auth . replace ( 'Bearer' , 'OAuth2' ) headers [ 'Authorization' ] = auth return uri , headers , body
Since weibo is a rubbish server, it does not follow the standard,
    we need to change the authorization header for it.
Since weibo is a rubbish server it does not follow the standard we need to change the authorization header for it .