]> granicus.if.org Git - ejabberd/commitdiff
Clean state between requests in ejabberd_http
authorPaweł Chmielowski <pchmielowski@process-one.net>
Tue, 15 May 2018 12:25:19 +0000 (14:25 +0200)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Tue, 15 May 2018 12:25:19 +0000 (14:25 +0200)
src/ejabberd_http.erl

index 2e73ef1bfae3c49ba3a4a79e13a5a16b85448ffa..167d2a5aa80ca12f24905ea97cea97ac1142596a 100644 (file)
@@ -528,7 +528,7 @@ process_request(#state{request_method = Method,
                      _ ->
                          none
                  end,
-           {State2, Res}
+           {State2#state{trail = <<>>}, Res}
     end.
 
 make_bad_request(State) ->