Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita3e9231

Browse files
Set Content-Type correctly for requests
Most of the time, GitHub will be fine without an explicit Content-Type,until you start putting % characters in there (fairly reasonably!)
1 parent95c0096 commita3e9231

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

‎AUTHORS.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ Contributors
2727
- Hong Minhee (@dahlia)
2828

2929
- Paul Swartz (@paulswartz)
30+
31+
- Kristian Glass (@doismellburning)

‎github3/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ def __init__(self, json, ses=None):
6262
'Accept':'application/vnd.github.v3.full+json',
6363
# Only accept UTF-8 encoded data
6464
'Accept-Charset':'utf-8',
65+
# Always sending JSON
66+
'Content-Type':"application/json",
6567
# Set our own custom User-Agent string
6668
'User-Agent':'github3.py/0.1b0',
6769
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp