(
self,
environ: WSGIEnvironment | None = None,
scope: dict[str, t.Any] | None = None,
)
| 547 | self.units = units |
| 548 | |
| 549 | def get_headers( |
| 550 | self, |
| 551 | environ: WSGIEnvironment | None = None, |
| 552 | scope: dict[str, t.Any] | None = None, |
| 553 | ) -> list[tuple[str, str]]: |
| 554 | headers = super().get_headers(environ, scope) |
| 555 | if self.length is not None: |
| 556 | headers.append(("Content-Range", f"{self.units} */{self.length}")) |
| 557 | return headers |
| 558 | |
| 559 | |
| 560 | class ExpectationFailed(HTTPException): |
nothing calls this directly
no test coverage detected