给个流你测试一下吧:我测试了后面的不加会出现你那种情况。
[
{
"id": "2d370df7fbb9d36e",
"type": "http in",
"z": "f1e2451192c4a11d",
"name": "",
"url": "/test",
"method": "get",
"upload": false,
"swaggerDoc": "",
"x": 170,
"y": 480,
"wires": [
[
"9bbca55131b640fc"
]
]
},
{
"id": "9bbca55131b640fc",
"type": "function",
"z": "f1e2451192c4a11d",
"name": "HTML",
"func": "msg.payload = `\n<!doctype html>\n<html>\n<head>\n<meta charset="utf-8">\n<title>test</title>\n</head>\n<body>\n <ul>\n <li>test</li>\n <li>test</li>\n <li>test</li>\n </ul>\n</body>\n</html>\n`\nreturn msg",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 430,
"y": 480,
"wires": [
[
"4aa9eb1470db4ad5"
]
]
},
{
"id": "4aa9eb1470db4ad5",
"type": "http response",
"z": "f1e2451192c4a11d",
"name": "",
"statusCode": "200",
"headers": {
"test": "test"
},
"x": 620,
"y": 480,
"wires": []
}
]
|