about summary refs log tree commit diff
path: root/src/status_code.py
diff options
context:
space:
mode:
authorUltraQbik <no1skill@yandex.ru>2024-08-25 03:13:45 +0300
committerUltraQbik <no1skill@yandex.ru>2024-08-25 03:13:45 +0300
commit619f5707b95b3ff13047f6114e8b89ef665b1100 (patch)
treed507a6671e758a6399584f276eda83ef29240082 /src/status_code.py
parent93317bcd56a39fc70020143d6f4e6a615a45111f (diff)
downloadhttpy-619f5707b95b3ff13047f6114e8b89ef665b1100.tar.gz
httpy-619f5707b95b3ff13047f6114e8b89ef665b1100.zip
Add UTF-8 support
Probably useful to have it
Diffstat (limited to 'src/status_code.py')
-rw-r--r--src/status_code.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/status_code.py b/src/status_code.py
index a63712c..79a2011 100644
--- a/src/status_code.py
+++ b/src/status_code.py
@@ -8,7 +8,7 @@ class StatusCode:
         self._message: str = message
 
     def __bytes__(self):
-        return f"{self._code} {self._message}".encode("ascii")
+        return f"{self._code} {self._message}".encode("utf8")
 
     def __str__(self):
         return f"{self._code} {self._message}"