Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
ae38e9f6
Commit
ae38e9f6
authored
Jun 03, 2013
by
Georgios D. Tsoukalas
Browse files
django-lib: fix missing 'raise' typo
parent
3a394356
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-django-lib/snf_django/lib/api/utils.py
View file @
ae38e9f6
...
...
@@ -97,7 +97,7 @@ def get_request_dict(request):
data
=
request
.
raw_post_data
content_type
=
request
.
META
.
get
(
"CONTENT_TYPE"
)
if
content_type
is
None
:
faults
.
BadRequest
(
"Missing Content-Type header field"
)
raise
faults
.
BadRequest
(
"Missing Content-Type header field"
)
if
content_type
.
startswith
(
"application/json"
):
try
:
return
json
.
loads
(
data
)
...
...
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