diff --git a/check_http_json.py b/check_http_json.py index 08df991..6eb9977 100755 --- a/check_http_json.py +++ b/check_http_json.py @@ -406,6 +406,7 @@ if __name__ == "__main__": # Attempt to reach the endpoint try: req = urllib2.Request(url) + req.add_header('Content-Type', 'application/json') if args.auth: base64str = base64.encodestring(args.auth).replace('\n', '') req.add_header('Authorization', 'Basic %s' % base64str)