Skip to content

Commit

Permalink
Set default protocol if it is not specified explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Oct 6, 2023
1 parent 90685e7 commit 984015d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/service/version_endpoint_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ func (k *endpointService) override(left *models.VersionEndpoint, right *models.V
left.Protocol = right.Protocol
}

// set default protocol if it is not specified explicitly
if left.Protocol == "" {
left.Protocol = protocol.HttpJson
}

return nil
}

Expand Down

0 comments on commit 984015d

Please sign in to comment.