Skip to content

Commit

Permalink
Merge pull request #43 from Dcallies/content_type
Browse files Browse the repository at this point in the history
Fix some issues for windows
  • Loading branch information
ShaneSutro authored Jan 21, 2025
2 parents b6bd768 + 8e95422 commit c120ab1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import setuptools

with open("README.md", "r") as fh:
with open("README.md", "r", encoding="utf8") as fh:
long_description = fh.read()

setuptools.setup(
Expand Down
2 changes: 1 addition & 1 deletion vestaboard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def raw(self, charList: list, pad=None):
if self.localKey and self.localIP:
self._raw_local(finalText["characters"])
elif self.readWrite and self.apiKey:
headers = {"X-Vestaboard-Read-Write-Key": self.apiKey}
headers = {"X-Vestaboard-Read-Write-Key": self.apiKey, "Content-Type": "application/json"}
requests.post(
vbUrls.readWrite,
headers=headers,
Expand Down

0 comments on commit c120ab1

Please sign in to comment.