Skip to content

Commit

Permalink
Small update to use header variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobm-splunk authored and daveshanley committed Jun 2, 2024
1 parent fb694d0 commit dfacb38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/handle_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ func (ws *WiretapService) handleHttpRequest(request *model.Request) {
responseHeaders := request.HttpResponseWriter.Header()

if responseHeaders.Get(k) == "" {
request.HttpResponseWriter.Header().Set(k, fmt.Sprint(j))
responseHeaders.Set(k, fmt.Sprint(j))
} else {
request.HttpResponseWriter.Header().Add(k, fmt.Sprint(j))
responseHeaders.Add(k, fmt.Sprint(j))
}
}
}
Expand Down

0 comments on commit dfacb38

Please sign in to comment.