Skip to content

Commit cdcd06a

Browse files
committed
Fix cohttp version of Ocsigen_request.update
1 parent c797386 commit cdcd06a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/server/ocsigen_request.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ let update
174174
match post_data with
175175
| Some (Some post_data) ->
176176
ref (`Parsed (Lwt.return post_data))
177-
| None | Some None ->
177+
| Some None ->
178+
ref (`Parsed (Lwt.return ([], [])))
179+
| None ->
178180
r_body
179181
and r_cookies_override =
180182
match cookies_override with

0 commit comments

Comments
 (0)