Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
oai-cn5g-udr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
cn5g
oai-cn5g-udr
Merge requests
!41
Fix PLMN ID for SessionManagementSubscriptionData (HTTP2)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix PLMN ID for SessionManagementSubscriptionData (HTTP2)
fix_http2
into
develop
Overview
1
Commits
1
Pipelines
0
Changes
1
Merged
Tien-Thinh Nguyen
requested to merge
fix_http2
into
develop
1 year ago
Overview
1
Commits
1
Pipelines
0
Changes
1
Expand
Fix PLMN ID in HTTP request URL for SessionManagementSubscriptionData (HTTP2)
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
6653b5ba
1 commit,
1 year ago
1 file
+
5
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/api_server/udr-http2-server.cpp
+
5
−
4
Options
@@ -154,12 +154,13 @@ void udr_http2_server::start() {
if
(
split_q
[
split_q
.
size
()
-
1
].
compare
(
NUDR_DR_SM_DATA
)
==
0
)
{
if
(
request
.
method
().
compare
(
"GET"
)
==
0
&&
len
==
0
)
{
Snssai
singleNssai
;
std
::
string
ueId
=
split_q
[
split_q
.
size
()
-
4
].
c_str
();
std
::
string
qs
=
request
.
uri
().
raw_query
;
std
::
string
ueId
=
split_q
[
split_q
.
size
()
-
4
].
c_str
();
std
::
string
servingPlmnId
=
split_q
[
split_q
.
size
()
-
3
].
c_str
();
std
::
string
qs
=
request
.
uri
().
raw_query
;
Logger
::
udr_server
().
debug
(
"QueryString: %s"
,
qs
.
c_str
());
std
::
string
servingPlmnId
=
util
::
get_query_param
(
qs
,
"servingPlmnId"
);
//
std::string servingPlmnId =
//
util::get_query_param(qs, "servingPlmnId");
std
::
string
dnn
=
util
::
get_query_param
(
qs
,
"dnn"
);
std
::
string
snssai
=
util
::
get_query_param
(
qs
,
"single-nssai"
);
nlohmann
::
json
::
parse
(
snssai
.
c_str
()).
get_to
(
singleNssai
);
Loading