Skip to content

Commit

Permalink
fix panic when server push request has request headers. (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlu-xcq committed Apr 25, 2024
1 parent 6f9348a commit 6763a4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/remote/rpc/rpc_request/rpc_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ type IConfigRequest interface {
}

func (r *Request) PutAllHeaders(headers map[string]string) {
if r.Headers == nil {
r.Headers = make(map[string]string)
}
for k, v := range headers {
r.Headers[k] = v
}
Expand Down

0 comments on commit 6763a4e

Please sign in to comment.