mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +02:00
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>
This commit is contained in:
@@ -62,7 +62,7 @@ def edit_content(json_file_path):
|
|||||||
|
|
||||||
def prepare_data(args):
|
def prepare_data(args):
|
||||||
# attempt to get the max_log_size from the server's settings
|
# 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):
|
if not os.path.isfile(args.error_file):
|
||||||
log.error("No data file found.")
|
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}
|
headers={'Content-type': 'application/json', 'User-Agent': "send-error-report/"+version}
|
||||||
|
|
||||||
if args.json:
|
if args.json:
|
||||||
url = "http://"+args.server+"/ClientPost/JSON/"
|
url = "https://"+args.server+"/ClientPost/JSON/"
|
||||||
else:
|
else:
|
||||||
url = "http://"+args.server+"/ClientPost/"
|
url = "https://"+args.server+"/ClientPost/"
|
||||||
|
|
||||||
req = urllib.request.Request(url, data=data, headers=headers)
|
req = urllib.request.Request(url, data=data, headers=headers)
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user