summaryrefslogtreecommitdiffstats
path: root/scripts
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-25 22:27:39 +0000
commit6ea2afed9323d45451f88c9764b9b332a05fb7e4 (patch)
treef2615700fa8fa408a4b12f030ef1cbb0c530790a /scripts
parent909e75e53b432a2ed933ea06bc6865d3918f444e (diff)
downloadpoky-6ea2afed9323d45451f88c9764b9b332a05fb7e4.tar.gz
send-error-report: Use https instead of http protocol
errors.yp.org can understand https (From OE-Core rev: f540fed0aec24e28eff8522fddbe3cf7ee45e30b) (From OE-Core rev: 857ebd7fac590f569bff7e8ca29b6ae22eaaa65a) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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: