mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-02 14:18:43 +08:00
fix: Collector bug on undefined body
This commit is contained in:
parent
b9625945ae
commit
14f477a633
@ -29,7 +29,7 @@ export default def(class Collector {
|
||||
async get (route) {
|
||||
return await this.fetch({ method: 'get', route });
|
||||
}
|
||||
async post (route, body) {
|
||||
async post (route, body = {}) {
|
||||
if ( this.antiCSRF ) {
|
||||
body.anti_csrf = await this.antiCSRF.token();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user