From dee6be767e77969df9ff9a3df935562de51ac5a6 Mon Sep 17 00:00:00 2001 From: Alexey Tyuryumov Date: Wed, 10 Jan 2024 11:49:20 -0700 Subject: [PATCH] new: support of trailer headers --- runner/runner.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runner/runner.go b/runner/runner.go index c64013e..f799dd4 100644 --- a/runner/runner.go +++ b/runner/runner.go @@ -190,6 +190,10 @@ func (r *Runner) executeTest(v models.TestInterface) (*models.Result, error) { Test: v, } + for name, value := range resp.Trailer { + result.ResponseHeaders["Trailer-"+name] = value + } + // launch script in cmd interface if v.AfterRequestScriptPath() != "" { if err := cmd_runner.CmdRun(v.AfterRequestScriptPath(), v.AfterRequestScriptTimeout()); err != nil {