From c5732df15aa7c3784ed8265d86507efe96d0ce9f Mon Sep 17 00:00:00 2001 From: Jensfrank Date: Sat, 7 Sep 2024 22:58:02 +0800 Subject: [PATCH] Update Nlbench.sh --- Nlbench.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Nlbench.sh b/Nlbench.sh index 275530f..790371e 100644 --- a/Nlbench.sh +++ b/Nlbench.sh @@ -486,14 +486,14 @@ generate_markdown_output() { local url="http://nodeloc.uukk.de/test/${filename}" # 上传文件 - if curl -s -X PUT --data-binary @"$temp_output_file" "$url"; then - echo "测试结果已上传。您可以在以下链接查看:" - echo "$url" - echo "结果链接已保存到 $base_output_file.url" - echo "$url" > "$base_output_file.url" - else - echo "上传失败。结果已保存在本地文件 $temp_output_file" - fi +if curl -H "Content-Type: text/plain; charset=utf-8" -s -X PUT --data-binary @"$temp_output_file" "$url"; then + echo "测试结果已上传。您可以在以下链接查看:" + echo "$url" + echo "结果链接已保存到 $base_output_file.url" + echo "$url" > "$base_output_file.url" +else + echo "上传失败。结果已保存在本地文件 $temp_output_file" +fi rm "$temp_output_file" read -p "按回车键继续..."