You've already forked httpie-cli
mirror of
https://github.com/httpie/cli.git
synced 2025-08-10 22:42:05 +02:00
Fix typos (user-facing and non-user-facing) (#1357)
* Fix typos (user-facing and non-user-facing Found via `codespell -q 3 -L datas,medias,warmup` * Fix source typo found in tests/
This commit is contained in:
@@ -83,7 +83,7 @@ class Encoder:
|
||||
def __init__(self):
|
||||
self.substitutions = {}
|
||||
|
||||
def subsitute(self, data: bytes) -> str:
|
||||
def substitute(self, data: bytes) -> str:
|
||||
idx = hash(data)
|
||||
self.substitutions[idx] = data
|
||||
return self.TEMPLATE.format(idx)
|
||||
@@ -110,7 +110,7 @@ class FakeBytesIOBuffer(BytesIO):
|
||||
try:
|
||||
self.original_buffer.write(data.decode(UTF8))
|
||||
except UnicodeDecodeError:
|
||||
self.original_buffer.write(self.encoder.subsitute(data))
|
||||
self.original_buffer.write(self.encoder.substitute(data))
|
||||
finally:
|
||||
self.original_buffer.flush()
|
||||
|
||||
|
Reference in New Issue
Block a user