mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
Request content type
This commit is contained in:
1 parent
c431ed7728
commit
e4e40e5b06
9 files changed
+85
-32
No files matched your search
@@ -125,6 +125,8 @@ class EncodedStream(BaseStream):
|
||||
|
||||
def iter_body(self) -> Iterable[bytes]:
|
||||
for line, lf in self.msg.iter_lines(self.CHUNK_SIZE):
|
||||
if isinstance(line, MultipartEncoder):
|
||||
raise LargeUploadSuppressedError()
|
||||
if b'\0' in line:
|
||||
raise BinarySuppressedError()
|
||||
yield line.decode(self.msg.encoding) \
|
||||
|
||||
Reference in new issue
Block a user