Skip to content

Commit

Permalink
new: support of trailer headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey19 committed Jan 10, 2024
1 parent d9d798c commit dee6be7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dee6be7

Please sign in to comment.