Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 480d6570597249833b014696b163d8cd72dd665c 1 parent 5b714e8
Cédric Soulas cedricss authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 stdlib/core/web/server/remote_log.opa
4 stdlib/core/web/server/remote_log.opa
@@ -49,8 +49,8 @@ RemoteLog = {{
49 49 match get_remote_logs_params() with
50 50 | {none} -> {none}
51 51 | {some=(hostname,port,appkey)} ->
52   - cookie = match ThreadContext.get({current}).key with
53   - | {client = {~client ...}} -> "&cookie={client}"
  52 + cookie = match HttpRequest.get_cookie() with
  53 + | {some=cookie} -> "&cookie={cookie}"
54 54 | _ -> ""
55 55 some("http://{hostname}:{port}/?appkey={appkey}{cookie}")
56 56

0 comments on commit 480d657

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