pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43679?usp=email ) 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(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/79/43679/1 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 1551489..a349899 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: newchange Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I14903636636bbd6cd139244d5aed8617df458a0c Gerrit-Change-Number: 43679 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin@sysmocom.de>