mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
fix: foreign_api handles pre-flight OPTIONS call on POST requests (#2365)
This commit is contained in:
parent
c7bb5eab27
commit
34bd35e8fc
1 changed files with 4 additions and 0 deletions
|
@ -627,6 +627,10 @@ where
|
||||||
ok(create_error_response(e))
|
ok(create_error_response(e))
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn options(&self, _req: Request<Body>) -> ResponseFuture {
|
||||||
|
Box::new(ok(create_ok_response("{}")))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Utility to serialize a struct into JSON and produce a sensible Response
|
// Utility to serialize a struct into JSON and produce a sensible Response
|
||||||
|
|
Loading…
Reference in a new issue