Skip to content
Permalink
Browse files

(header): Add the record headers to the reponse

  • Loading branch information
erbesharat committed Jan 4, 2020
1 parent 7e05f2a commit 71440065582ee9404c429c0d8473c56abb1d18fe
Showing with 7 additions and 0 deletions.
  1. +7 −0 record.go
@@ -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
}

0 comments on commit 7144006

Please sign in to comment.
You can’t perform that action at this time.