Skip to content

Commit 566e4d2

Browse files
Only options is NO CONTENT
1 parent 7144464 commit 566e4d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ async fn serve_req(ctx: Arc<Server>, req: Request) -> Result<Response, ServerErr
13991399
return Ok(Response::new(hyper::Body::from("no data yet, please wait")));
14001400
}
14011401

1402-
if req.method() != http::Method::OPTIONS {
1402+
if req.method() == http::Method::OPTIONS {
14031403
return Ok(http::Response::builder()
14041404
.status(StatusCode::NO_CONTENT)
14051405
.body(hyper::Body::empty())

0 commit comments

Comments
 (0)