Permalink
Browse files

XOP-229: Change keep_alive=true and http version = 1.1.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
  • Loading branch information...
jeromemaloberti committed Jan 31, 2013
1 parent a7f540a commit ce684f7b853265ce6961d7eaea68df8cdff1fff6
Showing with 4 additions and 4 deletions.
  1. +4 −4 http-svr/http.ml
View
@@ -376,7 +376,7 @@ module Request = struct
body = None;
}
- let make ?(frame=false) ?(version="1.0") ?(keep_alive=false) ?accept ?cookie ?length ?auth ?subtask_of ?body ?(headers=[]) ?content_type ?host ?(query=[]) ~user_agent meth path =
+ let make ?(frame=false) ?(version="1.1") ?(keep_alive=true) ?accept ?cookie ?length ?auth ?subtask_of ?body ?(headers=[]) ?content_type ?host ?(query=[]) ~user_agent meth path =
{ empty with
version = version;
frame = frame;
@@ -479,7 +479,7 @@ module Response = struct
}
let empty = {
- version = "1.0";
+ version = "1.1";
frame = false;
code = "500";
message = "Empty response";
@@ -498,7 +498,7 @@ module Response = struct
(kvpairs x.additional_headers)
let empty = {
- version = "1.0";
+ version = "1.1";
frame = false;
code = "500";
message = "Unknown error message";
@@ -507,7 +507,7 @@ module Response = struct
additional_headers = [];
body = None;
}
- let make ?(frame=false) ?(version="1.0") ?length ?task ?(headers=[]) ?body code message = {
+ let make ?(frame=false) ?(version="1.1") ?length ?task ?(headers=[]) ?body code message = {
version = version;
frame = frame;
code = code;

0 comments on commit ce684f7

Please sign in to comment.