Skip to content
Browse files

Keep the original request during an internal redirection

  • Loading branch information...
1 parent 5b362c4 commit 7630ffa89ff1e7446885b503623588c46b98b361 @capflam capflam committed Jul 1, 2014
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/yaws_server.erl
View
5 src/yaws_server.erl
@@ -1359,7 +1359,10 @@ handle_method_result(Res, CliSock, {IP,Port}, GS, Req, H, Num) ->
A -> A
end,
Arg1 = make_arg(CliSock, {IP,Port}, H, NextReq, Arg0#arg.clidata),
- Arg2 = Arg1#arg{cont=Arg0#arg.cont, state=Arg0#arg.state},
+ Arg2 = Arg1#arg{orig_req = Arg0#arg.orig_req,
+ cont = Arg0#arg.cont,
+ state = Arg0#arg.state},
+
%% Get the number of bytes already read and do the reentrant call
CliDataPos = case get(client_data_pos) of

0 comments on commit 7630ffa

Please sign in to comment.
Something went wrong with that request. Please try again.