Skip to content

Commit

Permalink
Merge pull request #258 from GeoNet/iu-case-fix2
Browse files Browse the repository at this point in the history
fix: incorrect checking for IU/SNZO
  • Loading branch information
sue-h-gns authored Sep 5, 2024
2 parents e6a9f45 + 7589edb commit e62d85e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/fdsn-ws/fdsn_dataselect.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ func fdsnDataselectV1Handler(r *http.Request, w http.ResponseWriter) (int64, err
}
// We reject all queries for network not "NZ", except special case IU/SNZO.
// Note: IU/SNZO won't matched by wildcard queries.
if d.Network != "IU" && d.Station != "SNZO" {
if d.Network == "^IU$" && d.Station == "^SNZO$" {
// let it pass
} else {
if m, err := regexp.MatchString(d.Network, "NZ"); err != nil || !m {
continue
}
Expand Down

0 comments on commit e62d85e

Please sign in to comment.