File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ let connection_handler ?catch ?allow_origin ?allow_headers ?allow_methods
7575 Lwt. return_unit
7676 | `http {Answer. code; body; headers =resp_headers } ->
7777 let status = Status. unsafe_of_code code in
78- debug ~v: (if code = 200 then 1 else 0 ) " Reply computed to %S: %d" path_str code;
78+ debug ~v: (if code > = 200 && code < 300 then 1 else 0 ) " Reply computed to %S: %d" path_str code;
7979 debugf ~v: 3 (fun () ->
8080 let content_type = List. assoc_opt " content-type" resp_headers in
8181 if body <> " " && (content_type = Some " application/json" || content_type = Some " text/plain" ) then
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ let connection_handler ?catch ?allow_origin ?allow_headers ?allow_methods
7676 | `ws (Ok () ) -> Lwt. return_unit
7777 | `http {Answer. code; body; headers =resp_headers } ->
7878 let status = Status. unsafe_of_code code in
79- debug ~v: (if code = 200 then 1 else 0 ) " Reply computed to %S: %d" path_str code;
79+ debug ~v: (if code > = 200 && code < 300 then 1 else 0 ) " Reply computed to %S: %d" path_str code;
8080 debugf ~v: 3 (fun () ->
8181 let content_type = List. assoc_opt " content-type" resp_headers in
8282 if body <> " " && (content_type = Some " application/json" || content_type = Some " text/plain" ) then
You can’t perform that action at this time.
0 commit comments