Skip to content

Commit f568c52

Browse files
committed
Set the JSON charset according to spec
See https://spaceapi.io/provide-an-endpoint/ for details
1 parent ad7a208 commit f568c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def initialize(self, observer):
9696
self.observer = observer
9797

9898
def get(self):
99-
self.set_header("Content-Type", "application/json")
99+
self.set_header("Content-Type", "application/json; charset=utf-8")
100100
self.write(json.dumps(self.observer.get_space_api_entry(), indent=4))
101101
self.finish()
102102

0 commit comments

Comments
 (0)