Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
Merge pull request #60 from ymyzk/enhancement/github-accept
Browse files Browse the repository at this point in the history
Set Accept header explicitly in GitHubChannel
  • Loading branch information
ymyzk committed Jul 19, 2017
2 parents 0853b8e + b2ed8de commit a09284e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kawasemi/backends/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def __init__(self, token, owner, repository,

def send(self, message, fail_silently=False, options=None):
headers = {
"Accept": "application/vnd.github.v3+json",
"Authorization": "token " + self.token,
"Content-Type": "application/json"
}
Expand Down

0 comments on commit a09284e

Please sign in to comment.