8000 Add comment about the behavior · losingkeys/github3.py@ca9f8b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit ca9f8b6

Browse files
committed
Add comment about the behavior
1 parent 879da94 commit ca9f8b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

github3/github.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,9 @@ def pubsubhubbub(self, mode, topic, callback, secret=''):
755755
data.append(('hub.secret', secret))
756756
url = self._build_url('hub')
757757
h = {'Content-Type': None}
758+
# This is not JSON data. It is meant to be form data
759+
# application/x-www-form-urlencoded works fine here, no need for
760+
# multipart/form-data
758761
status = self._boolean(self._post(url, data=data, headers=h), 204,
759762
404)
760763
return status

0 commit comments

Comments
 (0)
0