File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -753,16 +753,13 @@ async def write_eof(self, data: bytes = b"") -> None:
753
753
assert not data , f"data arg is not supported, got { data !r} "
754
754
assert self ._req is not None
755
755
assert self ._payload_writer is not None
756
- if body is not None :
757
- if self ._must_be_empty_body :
758
- await super ().write_eof ()
759
- elif isinstance (self ._body , Payload ):
760
- await self ._body .write (self ._payload_writer )
761
- await super ().write_eof ()
762
- else :
763
- await super ().write_eof (cast (bytes , body ))
764
- else :
756
+ if body is None or self ._must_be_empty_body :
765
757
await super ().write_eof ()
758
+ elif isinstance (self ._body , Payload ):
759
+ await self ._body .write (self ._payload_writer )
760
+ await super ().write_eof ()
761
+ else :
762
+ await super ().write_eof (cast (bytes , body ))
766
763
767
764
async def _start (self , request : "BaseRequest" ) -> AbstractStreamWriter :
768
765
if hdrs .CONTENT_LENGTH in self ._headers :
You can’t perform that action at this time.
0 commit comments