Skip to content

Commit

Permalink
export defaultHeaders field (#710)
Browse files Browse the repository at this point in the history
* export package.defaultHeaders field

missed exporting the field in a previous PR# 709
  • Loading branch information
rpatali committed Apr 29, 2020
1 parent dcb2b3e commit 404f48c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions codegen/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,3 +360,9 @@ func (p PackageHelper) TypeFullName(typeSpec compile.TypeSpec) (string, error) {
func (p PackageHelper) DeputyReqHeader() string {
return p.deputyReqHeader
}

// DefaultHeaders returns a list of headers that will always be forwarded
// when present in the incoming request.
func (p PackageHelper) DefaultHeaders() []string {
return p.defaultHeaders
}

0 comments on commit 404f48c

Please sign in to comment.