Skip to content

Commit eb885a7

Browse files
authored
Merge pull request #207 from ocsigen/fixcohttp
Fix cohttp version of Ocsigen_request.update
2 parents c797386 + 3ecad46 commit eb885a7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ocsigenserver.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
opam-version: "2.0"
22
name: "ocsigenserver"
3-
version: "4.0.1"
3+
version: "4.0.2"
44
maintainer: "[email protected]"
55
synopsis: "A full-featured and extensible Web server"
66
description: "Ocsigen Server implements most features of the HTTP protocol, and has a very powerful extension mechanism that makes it very easy to plug your own OCaml modules for generating pages. Many extensions are already implemented, like a reverse proxy, content compression, access control, authentication, etc."

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)