Skip to content

Commit 55982ff

Browse files
committed
obviously ... missing a not
1 parent a71b1cf commit 55982ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server/directory.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ let options_headers dir = match MethMap.bindings dir.services with
200200
| Websocket {service; _} -> aux_sec acc service
201201
) StringSet.empty l in
202202
let allowed_headers_set = if List.exists (fun (_, rs) -> match rs with
203-
| Http {service; _} -> IO.is_empty service.Service.input
203+
| Http {service; _} -> not (IO.is_empty service.Service.input)
204204
| Websocket _ -> false) l then
205205
StringSet.add "content-type" sec_set else sec_set in
206206
let headers = Cors.insert headers (Cors.allow_headers_name, allowed_headers_set) in

0 commit comments

Comments
 (0)