[XS] Change in osmo-ttcn3-hacks[master]: HTTP2_Templates: add ts_HTTP2_Hdr_content_type_multipart
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43679?usp=email ) ( 1 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: HTTP2_Templates: add ts_HTTP2_Hdr_content_type_multipart ...................................................................... HTTP2_Templates: add ts_HTTP2_Hdr_content_type_multipart Change-Id: I14903636636bbd6cd139244d5aed8617df458a0c --- M library/HTTP2_Templates.ttcn M smf/SMF_Session_CT_5G.ttcn 2 files changed, 5 insertions(+), 1 deletion(-) Approvals: fixeria: Looks good to me, approved Jenkins Builder: Verified diff --git a/library/HTTP2_Templates.ttcn b/library/HTTP2_Templates.ttcn index 929b324..e07d4b6 100644 --- a/library/HTTP2_Templates.ttcn +++ b/library/HTTP2_Templates.ttcn @@ -233,6 +233,10 @@ := ts_HTTP2_header_field(c_HTTP2_HDR_content_type, header_value); template (value) HTTP2_header_field +ts_HTTP2_Hdr_content_type_multipart(template (value) charstring boundary) +:= ts_HTTP2_header_field(c_HTTP2_HDR_content_type, "multipart/related; boundary=\"" & valueof(boundary) & "\""); + +template (value) HTTP2_header_field ts_HTTP2_Hdr_accept(template (omit) charstring header_value := omit) := ts_HTTP2_header_field(c_HTTP2_HDR_accept, header_value); diff --git a/smf/SMF_Session_CT_5G.ttcn b/smf/SMF_Session_CT_5G.ttcn index b74625c..6809785 100644 --- a/smf/SMF_Session_CT_5G.ttcn +++ b/smf/SMF_Session_CT_5G.ttcn @@ -140,7 +140,7 @@ authority := Nsmf_uri_hostport, path := Nsmf_PDUSession_path_sm_contexts), headers := { - ts_HTTP2_Hdr_content_type("multipart/related; boundary=\"" & boundary & "\""), + ts_HTTP2_Hdr_content_type_multipart(boundary), ts_HTTP2_Hdr_accept("application/json,application/vnd.3gpp.ngap,application/problem+json"), ts_HTTP2_Hdr_user_agent("ttcn3-amf"), ts_HTTP2_Hdr_accept_encoding("gzip") -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43679?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I14903636636bbd6cd139244d5aed8617df458a0c Gerrit-Change-Number: 43679 Gerrit-PatchSet: 3 Gerrit-Owner: pespin <pespin@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> Gerrit-Reviewer: pespin <pespin@sysmocom.de>
participants (1)
-
pespin