summaryrefslogtreecommitdiffstats
path: root/scripts/send-error-report
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-02-04 10:13:14 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-05 13:53:47 +0000
commit387c6a20fa61a0aa1497eae93d78facf9f5f5a5e (patch)
treebffcea2c31cf2e2e3384303e5b20840f8a459667 /scripts/send-error-report
parent404f7cec87bc9fabe48a5dbff38690faf96094b3 (diff)
downloadpoky-387c6a20fa61a0aa1497eae93d78facf9f5f5a5e.tar.gz
send-error-report: Use https instead of http protocol
errors.yp.org can understand https (From OE-Core rev: f540fed0aec24e28eff8522fddbe3cf7ee45e30b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/send-error-report')
-rwxr-xr-xscripts/send-error-report6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/send-error-report b/scripts/send-error-report
index 8939f5f594..3528cf93a9 100755
--- a/scripts/send-error-report
+++ b/scripts/send-error-report
@@ -62,7 +62,7 @@ def edit_content(json_file_path):
62 62
63def prepare_data(args): 63def prepare_data(args):
64 # attempt to get the max_log_size from the server's settings 64 # attempt to get the max_log_size from the server's settings
65 max_log_size = getPayloadLimit("http://"+args.server+"/ClientPost/JSON") 65 max_log_size = getPayloadLimit("https://"+args.server+"/ClientPost/JSON")
66 66
67 if not os.path.isfile(args.error_file): 67 if not os.path.isfile(args.error_file):
68 log.error("No data file found.") 68 log.error("No data file found.")
@@ -132,9 +132,9 @@ def send_data(data, args):
132 headers={'Content-type': 'application/json', 'User-Agent': "send-error-report/"+version} 132 headers={'Content-type': 'application/json', 'User-Agent': "send-error-report/"+version}
133 133
134 if args.json: 134 if args.json:
135 url = "http://"+args.server+"/ClientPost/JSON/" 135 url = "https://"+args.server+"/ClientPost/JSON/"
136 else: 136 else:
137 url = "http://"+args.server+"/ClientPost/" 137 url = "https://"+args.server+"/ClientPost/"
138 138
139 req = urllib.request.Request(url, data=data, headers=headers) 139 req = urllib.request.Request(url, data=data, headers=headers)
140 try: 140 try: