Conditions | 2 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | #!/usr/bin/env python3 |
||
36 | def is_done(self, http_status: int, contents: str) -> bool: |
||
37 | """Handle request result.""" |
||
38 | # Expect "HTTP 206 Partial Content" response |
||
39 | if http_status == 206: |
||
40 | self.result = EncryptHeaderResult(contents) |
||
41 | self.success = True |
||
42 | return True |
||
43 | self.error = "HTTP {}".format(http_status) |
||
44 | self.success = False |
||
45 | return True |
||
46 |