commit | 202ec1a53c9a830c17cf3b718d089cf7eba568ad | [log] [tgz] |
---|---|---|
author | Nate Bosch <nbosch@google.com> | Mon Jul 19 09:46:01 2021 -0700 |
committer | GitHub <noreply@github.com> | Mon Jul 19 09:46:01 2021 -0700 |
tree | 6dd7a4bd3d4c55f8507d14f0449c6a92c05cdc1e | |
parent | 4c459ceca02c23bd28c86f869887158b706c03f0 [diff] |
Refactor range support implementation (#66) Reduce nesting by extracting to a method allowing guard clauses and inverted the conditionals with early returns. Remove some comments that repeat the code. Use conditional map elements and `..[]` operator to reduce the noise around setting headers. Add tests for requests where the range header is ignored.