Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
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
OpenXG
OpenXG-SMF
Commits
6f894d2a
Commit
6f894d2a
authored
Jul 27, 2022
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix small issue for Mime parser for normal message
parent
8e94638a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/common/utils/mime_parser.cpp
src/common/utils/mime_parser.cpp
+3
-1
No files found.
src/common/utils/mime_parser.cpp
View file @
6f894d2a
...
...
@@ -33,8 +33,10 @@ bool mime_parser::parse(const std::string& str) {
// find boundary
std
::
size_t
content_type_pos
=
str
.
find
(
"Content-Type"
);
// first part
// For normal message -> don't need to parse (number of parts = 0)
if
((
content_type_pos
<=
4
)
or
(
content_type_pos
==
std
::
string
::
npos
))
return
fals
e
;
return
tru
e
;
std
::
string
boundary_str
=
str
.
substr
(
2
,
content_type_pos
-
4
);
// 2 for -- and 2 for CRLF
...
...
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