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 "按回车键继续..."