Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF-Simple
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CommunityXG
OpenXG-AMF-Simple
Commits
7d59a8d7
Commit
7d59a8d7
authored
Sep 10, 2020
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix issue when there's no content in the response from SMF
parent
729aa14e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/amf-app/amf_n11.cpp
src/amf-app/amf_n11.cpp
+6
-1
No files found.
src/amf-app/amf_n11.cpp
View file @
7d59a8d7
...
...
@@ -401,7 +401,12 @@ void amf_n11::curl_http_client(std::string remoteUri, std::string jsonData, std:
}
if
(
httpCode
!=
200
&&
httpCode
!=
201
&&
httpCode
!=
204
)
{
is_response_ok
=
false
;
//TODO: error if there's no content in the response
if
(
response
.
size
()
<
1
)
{
Logger
::
amf_n11
().
error
(
"There's no content in the response"
);
//TODO: send context response error
return
;
}
if
(
!
(
multipart_parser
(
response
,
jsonData
,
n1sm
,
n2sm
)))
{
Logger
::
amf_n11
().
error
(
"Could not get the cause from the response"
);
}
...
...
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