about summary refs log tree commit diff
path: root/users/Profpatsch
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2024-05-11T20·11+0200
committerclbot <clbot@tvl.fyi>2024-05-13T14·49+0000
commitbad074465a7afaa3a6b6dd4a606785c35daa66c4 (patch)
treee0baf12dea440749446d791d1540d2ffc0fe05fc /users/Profpatsch
parent8a6f12bdb93f0d603931d1278162aec55beb7765 (diff)
fix(users/Profpatsch/whatcd-resolver): only prepend log path r/8128
Otherwise we break routing.

Change-Id: I7555a75fcd589a003c81d86e8e8242fcd0da3594
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11647
Tested-by: BuildkiteCI
Autosubmit: Profpatsch <mail@profpatsch.de>
Reviewed-by: Profpatsch <mail@profpatsch.de>
Diffstat (limited to 'users/Profpatsch')
-rw-r--r--users/Profpatsch/whatcd-resolver/src/WhatcdResolver.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/Profpatsch/whatcd-resolver/src/WhatcdResolver.hs b/users/Profpatsch/whatcd-resolver/src/WhatcdResolver.hs
index a233888c45..8843a78729 100644
--- a/users/Profpatsch/whatcd-resolver/src/WhatcdResolver.hs
+++ b/users/Profpatsch/whatcd-resolver/src/WhatcdResolver.hs
@@ -312,13 +312,13 @@ runHandlers ::
   (Wai.Response -> IO ResponseReceived) ->
   m ResponseReceived
 runHandlers defaultHandler handlers req respond = withRunInIO $ \runInIO -> do
-  let path = [fmt|/{req & Wai.pathInfo & Text.intercalate "/"}|]
+  let path = req & Wai.pathInfo & Text.intercalate "/"
   let handlerResponses =
         ( HandlerResponses
             { plain = (\m -> liftIO $ runInIO m >>= respond),
               html = \act ->
                 Otel.inSpan'
-                  [fmt|Route {path}|]
+                  [fmt|Route /{path}|]
                   ( Otel.defaultSpanArguments
                       { Otel.attributes =
                           HashMap.fromList