Skip to content

Commit

Permalink
Fixed index-out-of-bounds error in MultivalueMap.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlalis committed Aug 2, 2024
1 parent 8e55c70 commit 62db3b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/handy_httpd/components/multivalue_map.d
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ struct MultiValueMap(KeyType, ValueType, alias KeySort = (a, b) => a < b) {
if (KeySort(entries[mid].key, k)) {
startIdx = mid + 1;
} else {
if (mid == 0) return -1;
endIdx = mid - 1;
}
}
Expand Down

0 comments on commit 62db3b2

Please sign in to comment.