TUN-2894: ResponseMetaHeader should be public
This commit is contained in:
parent
06f29306cd
commit
1c6ea36e73
|
@ -232,12 +232,12 @@ func CreateSerializedHeaders(headersField string, headers ...http.Header) []Head
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|
||||||
type responseMetaHeader struct {
|
type ResponseMetaHeader struct {
|
||||||
Source string `json:"src"`
|
Source string `json:"src"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreateResponseMetaHeader(headerName, source string) Header {
|
func CreateResponseMetaHeader(headerName, source string) Header {
|
||||||
jsonResponseMetaHeader, err := json.Marshal(responseMetaHeader{Source: source})
|
jsonResponseMetaHeader, err := json.Marshal(ResponseMetaHeader{Source: source})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue