Attention is currently required from: dexter.
4 comments:
File library/HTTP_Adapter.ttcn:
Patch Set #1, Line 41: function ts_HTTP_Header(template charstring body := omit,
I'd prefer having this one prefixed "f_ts_", since it's actually a function.
Furthermore, this is a ts_ template, so it makes no sense to receive a "template charstring". It should be at least "template (omit) charstring".
Patch Set #1, Line 42: template charstring host := omit,
template (omit) charstring
Patch Set #1, Line 55: if (ispresent(body)) {
I'm not sure ispresent() can be used this way, or only for optional fields in a record. You probably need "istemplatekind". Make sure ispresent() doesn't return always true here.
Patch Set #1, Line 59: /* Add custom header lines, already existing headers (name) are updated */
I think it makes sense to move this to a separate function "merge_headers()" or "overlay_headers()".
This way the test can also simply get the regular header and call that function.
To view, visit change 36504. To unsubscribe, or for help writing mail filters, visit settings.