Skip to content

Commit

Permalink
(header): Add the record headers to the reponse
Browse files Browse the repository at this point in the history
  • Loading branch information
erbesharat committed Jan 4, 2020
1 parent 7e05f2a commit 7144006
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions record.go
Expand Up @@ -69,6 +69,13 @@ func getRecord(host string, c Config, w http.ResponseWriter, r *http.Request) (r

r = rec.addToContext(r)

// Add the headers from record to the response
if len(rec.Headers) != 0 {
for header, val := range rec.Headers {
w.Header().Set(header, val)
}
}

return rec, nil
}

Expand Down

0 comments on commit 7144006

Please sign in to comment.