Skip to content
Browse files

[enhance] RemoteLog: log the request cookie, instead of the response one

  • Loading branch information...
1 parent 5b714e8 commit 480d6570597249833b014696b163d8cd72dd665c @cedricss cedricss committed Apr 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 stdlib/core/web/server/remote_log.opa
View
4 stdlib/core/web/server/remote_log.opa
@@ -49,8 +49,8 @@ RemoteLog = {{
match get_remote_logs_params() with
| {none} -> {none}
| {some=(hostname,port,appkey)} ->
- cookie = match ThreadContext.get({current}).key with
- | {client = {~client ...}} -> "&cookie={client}"
+ cookie = match HttpRequest.get_cookie() with
+ | {some=cookie} -> "&cookie={cookie}"
| _ -> ""
some("http://{hostname}:{port}/?appkey={appkey}{cookie}")

0 comments on commit 480d657

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