Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
a5016473
Commit
a5016473
authored
Sep 06, 2013
by
Alexander Kryklia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
f45eddc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
lms/djangoapps/courseware/mock_lti_server/mock_lti_server.py
+2
-7
No files found.
lms/djangoapps/courseware/mock_lti_server/mock_lti_server.py
View file @
a5016473
...
@@ -82,13 +82,8 @@ class MockLTIRequestHandler(BaseHTTPRequestHandler):
...
@@ -82,13 +82,8 @@ class MockLTIRequestHandler(BaseHTTPRequestHandler):
post_dict
=
urlparse
.
parse_qs
(
self
.
rfile
.
read
(
length
),
keep_blank_values
=
True
)
post_dict
=
urlparse
.
parse_qs
(
self
.
rfile
.
read
(
length
),
keep_blank_values
=
True
)
# The POST dict will contain a list of values for each key.
# The POST dict will contain a list of values for each key.
# None of our parameters are lists, however, so we map [val] --> val.
# None of our parameters are lists, however, so we map [val] --> val.
#I f the list contains multiple entries, we pick the first one
# If the list contains multiple entries, we pick the first one
post_dict
=
dict
(
post_dict
=
{
key
:
val
[
0
]
for
key
,
val
in
post_dict
.
items
()}
map
(
lambda
(
key
,
list_val
):
(
key
,
list_val
[
0
]),
post_dict
.
items
()
)
)
except
:
except
:
# We return an empty dict here, on the assumption
# We return an empty dict here, on the assumption
# that when we later check that the request has
# that when we later check that the request has
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment