Merge branch 'master' of github.com:node-red/node-red

This commit is contained in:
Steve-Mcl 2024-06-24 11:58:03 +01:00
commit 61198bd7e3
2 changed files with 7 additions and 6 deletions

View File

@ -27,7 +27,8 @@
"lock": "固定", "lock": "固定",
"unlock": "固定を解除", "unlock": "固定を解除",
"locked": "固定済み", "locked": "固定済み",
"unlocked": "固定なし" "unlocked": "固定なし",
"format": "形式"
}, },
"type": { "type": {
"string": "文字列", "string": "文字列",
@ -281,8 +282,8 @@
"selected": "選択したフロー", "selected": "選択したフロー",
"current": "現在のタブ", "current": "現在のタブ",
"all": "全てのタブ", "all": "全てのタブ",
"compact": "インデントのないJSONフォーマット", "compact": "インデントなし",
"formatted": "インデント付きのJSONフォーマット", "formatted": "インデント付き",
"copy": "書き出し", "copy": "書き出し",
"export": "ライブラリに書き出し", "export": "ライブラリに書き出し",
"exportAs": "書き出し先", "exportAs": "書き出し先",
@ -923,6 +924,8 @@
} }
}, },
"typedInput": { "typedInput": {
"selected": "__count__個を選択",
"selected_plural": "__count__個を選択",
"type": { "type": {
"str": "文字列", "str": "文字列",
"num": "数値", "num": "数値",

View File

@ -534,9 +534,7 @@ in your Node-RED user directory (${RED.settings.userDir}).
opts.headers[clSet] = opts.headers['content-length']; opts.headers[clSet] = opts.headers['content-length'];
delete opts.headers['content-length']; delete opts.headers['content-length'];
} }
if (!opts.headers.hasOwnProperty('user-agent')) {
opts.headers['user-agent'] = 'Mozilla/5.0 (Node-RED)';
}
if (proxyUrl) { if (proxyUrl) {
const match = proxyUrl.match(/^(https?:\/\/)?(.+)?:([0-9]+)?/i); const match = proxyUrl.match(/^(https?:\/\/)?(.+)?:([0-9]+)?/i);
if (match) { if (match) {