Skip to content

Commit

Permalink
[Gateway] Don't save node responses with incorrect method name (#10796)
Browse files Browse the repository at this point in the history
  • Loading branch information
bolekk authored Sep 26, 2023
1 parent 539591d commit 0b463be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@ func (h *functionsHandler) processSecretsResponse(response *api.Message, respons
if _, exists := responseData.responses[response.Body.Sender]; exists {
return nil, nil, errors.New("duplicate response")
}
responseData.responses[response.Body.Sender] = response
if response.Body.Method != responseData.request.Body.Method {
return nil, responseData, errors.New("invalid method")
}
responseData.responses[response.Body.Sender] = response
var responsePayload SecretsResponseBase
err := json.Unmarshal(response.Body.Payload, &responsePayload)
if err != nil {
Expand Down

0 comments on commit 0b463be

Please sign in to comment.