TUN-2894: ResponseMetaHeader should be public

This commit is contained in:
Areg Harutyunyan 2020-04-11 00:59:34 +01:00
parent 06f29306cd
commit 1c6ea36e73
1 changed files with 2 additions and 2 deletions

View File

@ -232,12 +232,12 @@ func CreateSerializedHeaders(headersField string, headers ...http.Header) []Head
}}
}
type responseMetaHeader struct {
type ResponseMetaHeader struct {
Source string `json:"src"`
}
func CreateResponseMetaHeader(headerName, source string) Header {
jsonResponseMetaHeader, err := json.Marshal(responseMetaHeader{Source: source})
jsonResponseMetaHeader, err := json.Marshal(ResponseMetaHeader{Source: source})
if err != nil {
panic(err)
}