Skip to content

Commit de236f7

Browse files
committed
Rearrange code for headers
1 parent fb4ab5e commit de236f7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

goblint-http-server/goblint_http.ml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ let specs =
2525

2626
let paths = ref []
2727

28-
let cors_headers = Header.of_list [("Access-Control-Allow-Origin", "*");
29-
("Access-Control-Allow-Headers", "Content-Type, Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Headers");
30-
("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS")]
28+
let cors_headers =
29+
[
30+
("Access-Control-Allow-Origin", "*");
31+
("Access-Control-Allow-Headers", "Content-Type, Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Headers");
32+
("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS")
33+
] |> Header.of_list
3134

3235
let process state name body =
3336
match Hashtbl.find_option Api.registry name with

0 commit comments

Comments
 (0)