Commit 71a5df72 by chrisndodge

Merge pull request #1034 from edx/hotfix/lti_typo

Hotfix/lti typo
parents 4ad0d8e9 1d03f4aa
...@@ -227,17 +227,13 @@ class LTIModule(LTIFields, XModule): ...@@ -227,17 +227,13 @@ class LTIModule(LTIFields, XModule):
body=body, body=body,
headers=headers) headers=headers)
except ValueError: # scheme not in url except ValueError: # scheme not in url
# Stubbing headers for now: #https://github.com/idan/oauthlib/blob/master/oauthlib/oauth1/rfc5849/signature.py#L136
#Stubbing headers for now:
headers = { headers = {
u'Content-Type': u'application/x-www-form-urlencoded', u'Content-Type': u'application/x-www-form-urlencoded',
u'Authorization': u'oAuth ' # cont.. u'Authorization': u'OAuth oauth_nonce="80966668944732164491378916897", \
u'oauth_nonce="80966668944732164491378916897", ' # cont.. oauth_timestamp="1378916897", oauth_version="1.0", oauth_signature_method="HMAC-SHA1", \
u'oauth_timestamp="1378916897", ' # cont.. oauth_consumer_key="", oauth_signature="frVp4JuvT1mVXlxktiAUjQ7%2F1cw%3D"'}
u'oauth_version="1.0", ' # cont..
u'oauth_signature_method="HMAC-SHA1", ' # cont..
u'oauth_consumer_key="", ' # cont..
u'oauth_signature="frVp4JuvT1mVXlxktiAUjQ7%2F1cw%3D"',
}
params = headers['Authorization'] params = headers['Authorization']
# parse headers to pass to template as part of context: # parse headers to pass to template as part of context:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment