diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-02-04 10:13:14 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-05 00:24:36 +0000 |
commit | f540fed0aec24e28eff8522fddbe3cf7ee45e30b (patch) | |
tree | 0e2650961ff1643da7011b5bc935ae4a1c5d2610 /scripts/send-error-report | |
parent | 938a089b52e7bf5f67406f55234ab2d22236e9b6 (diff) | |
download | openembedded-core-contrib-f540fed0aec24e28eff8522fddbe3cf7ee45e30b.tar.gz |
send-error-report: Use https instead of http protocol
errors.yp.org can understand https
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-x | scripts/send-error-report | 6 |
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): def prepare_data(args): # attempt to get the max_log_size from the server's settings - max_log_size = getPayloadLimit("http://"+args.server+"/ClientPost/JSON") + max_log_size = getPayloadLimit("https://"+args.server+"/ClientPost/JSON") if not os.path.isfile(args.error_file): log.error("No data file found.") @@ -132,9 +132,9 @@ def send_data(data, args): headers={'Content-type': 'application/json', 'User-Agent': "send-error-report/"+version} if args.json: - url = "http://"+args.server+"/ClientPost/JSON/" + url = "https://"+args.server+"/ClientPost/JSON/" else: - url = "http://"+args.server+"/ClientPost/" + url = "https://"+args.server+"/ClientPost/" req = urllib.request.Request(url, data=data, headers=headers) try: |