We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0c3ad3 commit 03d847eCopy full SHA for 03d847e
1 file changed
src/java/common/context.go
@@ -152,9 +152,11 @@ func GetVCAPServices() (VCAPServices, error) {
152
}
153
154
// HasService checks if a service with the given label exists
155
+// Matching is case-insensitive to handle various service broker conventions
156
func (v VCAPServices) HasService(label string) bool {
157
+ labelLower := strings.ToLower(label)
158
for key := range v {
- if strings.ToLower(key) == label {
159
+ if strings.ToLower(key) == labelLower {
160
return true
161
162
0 commit comments