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
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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
OpenXG
OpenXG-AMF
Commits
6e0a52e5
Commit
6e0a52e5
authored
May 20, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for multi parser
parent
2a6d9ce7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/utils/http_multi_parser.cpp
src/utils/http_multi_parser.cpp
+1
-2
No files found.
src/utils/http_multi_parser.cpp
View file @
6e0a52e5
...
@@ -34,6 +34,7 @@ uint8_t multipart_parser(
...
@@ -34,6 +34,7 @@ uint8_t multipart_parser(
std
::
vector
<
mime_part
>
parts
=
{};
std
::
vector
<
mime_part
>
parts
=
{};
sp
.
get_mime_parts
(
parts
);
sp
.
get_mime_parts
(
parts
);
uint8_t
size
=
parts
.
size
();
uint8_t
size
=
parts
.
size
();
// at least 2 parts for Json data and N1 (+ N2)
// at least 2 parts for Json data and N1 (+ N2)
if
(
size
<
2
)
{
if
(
size
<
2
)
{
return
size
;
return
size
;
...
@@ -44,8 +45,6 @@ uint8_t multipart_parser(
...
@@ -44,8 +45,6 @@ uint8_t multipart_parser(
bool
is_ngap
=
false
;
bool
is_ngap
=
false
;
if
(
size
>
2
)
{
if
(
size
>
2
)
{
n2sm
=
parts
[
2
].
body
;
n2sm
=
parts
[
2
].
body
;
}
else
{
n2sm
=
"null"
;
}
}
return
size
;
return
size
;
...
...
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