mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-22 06:29:17 -04:00
Adding x-www-form-urlencoded (#3499)
* Adding x-www-form-urlencoded * Adding example of x-www-form-urlencoding to body. * A bit cleaner. * Update server/model/monitor.js Co-authored-by: Frank Elsinga <frank@elsinga.de> * Update src/pages/EditMonitor.vue Co-authored-by: Frank Elsinga <frank@elsinga.de> * Update src/pages/EditMonitor.vue Co-authored-by: Matthew Nickson <mnickson@sidingsmedia.com> * Add simple test --------- Co-authored-by: Anders Kvist <ak@cego.dk> Co-authored-by: Frank Elsinga <frank@elsinga.de> Co-authored-by: Louis Lam <louislam@users.noreply.github.com> Co-authored-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
parent
9f7f7a182e
commit
f0c54be43f
3 changed files with 13 additions and 0 deletions
|
@ -251,6 +251,12 @@ let needSetup = false;
|
|||
log.debug("test", request.body);
|
||||
response.send("OK");
|
||||
});
|
||||
|
||||
app.post("/test-x-www-form-urlencoded", async (request, response) => {
|
||||
log.debug("test", request.headers);
|
||||
log.debug("test", request.body);
|
||||
response.send("OK");
|
||||
});
|
||||
}
|
||||
|
||||
// Robots.txt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue