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
8c056f38
Commit
8c056f38
authored
Sep 13, 2013
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure our JSON messages output unescaped UTF-8 text, to match Software Secure expectations.
parent
d1e1e7e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lms/djangoapps/verify_student/models.py
+2
-2
No files found.
lms/djangoapps/verify_student/models.py
View file @
8c056f38
...
...
@@ -500,7 +500,7 @@ class SoftwareSecurePhotoVerification(PhotoVerification):
header_txt
=
"
\n
"
.
join
(
"{}: {}"
.
format
(
h
,
v
)
for
h
,
v
in
sorted
(
headers
.
items
())
)
body_txt
=
json
.
dumps
(
body
,
indent
=
2
,
sort_keys
=
True
)
body_txt
=
json
.
dumps
(
body
,
indent
=
2
,
sort_keys
=
True
,
ensure_ascii
=
False
)
return
header_txt
+
"
\n\n
"
+
body_txt
...
...
@@ -509,7 +509,7 @@ class SoftwareSecurePhotoVerification(PhotoVerification):
response
=
requests
.
post
(
settings
.
VERIFY_STUDENT
[
"SOFTWARE_SECURE"
][
"API_URL"
],
headers
=
headers
,
data
=
json
.
dumps
(
body
,
indent
=
2
,
sort_keys
=
True
)
data
=
json
.
dumps
(
body
,
indent
=
2
,
sort_keys
=
True
,
ensure_ascii
=
False
)
)
log
.
debug
(
"Sent request to Software Secure for {}"
.
format
(
self
.
receipt_id
))
log
.
debug
(
"Headers:
\n
{}
\n\n
"
.
format
(
headers
))
...
...
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