From 5015a476f3aabdff79d58151017ab6492cae3a54 Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Sat, 2 Jul 2016 23:42:33 -0400 Subject: [PATCH] ci_register: Specify Travis CI content type as JSON. --- conda_smithy/ci_register.py | 1 + 1 file changed, 1 insertion(+) diff --git a/conda_smithy/ci_register.py b/conda_smithy/ci_register.py index a7a3b56f5..8c21cb086 100755 --- a/conda_smithy/ci_register.py +++ b/conda_smithy/ci_register.py @@ -138,6 +138,7 @@ def add_project_to_travis(user, project): # If the user-agent isn't defined correctly, we will recieve a 403. 'User-Agent': 'Travis/1.0', 'Accept': 'application/vnd.travis-ci.2+json', + 'Content-Type': 'application/json' } endpoint = 'https://api.travis-ci.org' url = '{}/auth/github'.format(endpoint)