(environ)
| 87 | |
| 88 | |
| 89 | def collect_notify_urls(environ): |
| 90 | urls = [] |
| 91 | for key, value in environ.items(): |
| 92 | if not key.startswith("NOTIFY_"): |
| 93 | continue |
| 94 | if not value or not value.strip(): |
| 95 | continue |
| 96 | if key == "NOTIFY_URLS": |
| 97 | urls.extend( |
| 98 | normalize_notify_url(url) |
| 99 | for url in value.split(",") |
| 100 | if url.strip() |
| 101 | ) |
| 102 | else: |
| 103 | urls.append(normalize_notify_url(value)) |
| 104 | return urls |
| 105 | |
| 106 | |
| 107 | def scheme_label(url): |
no test coverage detected