HDFGroup / hsds

Cloud-native, service based access to HDF data
https://www.hdfgroup.org/solutions/hdf-kita/
Apache License 2.0
129 stars 53 forks source link

Fix empty value when integers in select param #85

Closed loichuder closed 3 years ago

loichuder commented 3 years ago

Putting integers in the select query parameter of GET value would give an empty value.

select=[n] would indeed be transformed to the empty slice [n:n].

In this PR, select=[n] is interpreted as [n:n+1], yielding a slice containing the element n.

jreadey commented 3 years ago

Looks good, thanks for the PR