diff options
author | Ben Spencer <dangerous.ben@gmail.com> | 2016-01-08 10:39:43 +0000 |
---|---|---|
committer | Ben Spencer <dangerous.ben@gmail.com> | 2016-01-08 10:45:30 +0000 |
commit | 0a0c5abb94e69b14b77bf16b503bfbf8e66e0a7e (patch) | |
tree | dc731e9678180f844b953dadb4355053340011c4 /kamon-spray/src/main/scala/kamon/spray | |
parent | a9d5c5c61f7e5e189bf67baee2b13e21ebbaaf73 (diff) | |
download | Kamon-0a0c5abb94e69b14b77bf16b503bfbf8e66e0a7e.tar.gz Kamon-0a0c5abb94e69b14b77bf16b503bfbf8e66e0a7e.tar.bz2 Kamon-0a0c5abb94e69b14b77bf16b503bfbf8e66e0a7e.zip |
+ spray: check for trace-token header in case-insensitive manner.
To comply with http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
Diffstat (limited to 'kamon-spray/src/main/scala/kamon/spray')
-rw-r--r-- | kamon-spray/src/main/scala/kamon/spray/instrumentation/ServerRequestInstrumentation.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kamon-spray/src/main/scala/kamon/spray/instrumentation/ServerRequestInstrumentation.scala b/kamon-spray/src/main/scala/kamon/spray/instrumentation/ServerRequestInstrumentation.scala index 82d3ceb1..b1bca22d 100644 --- a/kamon-spray/src/main/scala/kamon/spray/instrumentation/ServerRequestInstrumentation.scala +++ b/kamon-spray/src/main/scala/kamon/spray/instrumentation/ServerRequestInstrumentation.scala @@ -38,7 +38,7 @@ class ServerRequestInstrumentation { val defaultTraceName = SprayExtension.generateTraceName(request) val token = if (SprayExtension.settings.includeTraceTokenHeader) { - request.headers.find(_.name == SprayExtension.settings.traceTokenHeaderName).map(_.value) + request.headers.find(_.name.equalsIgnoreCase(SprayExtension.settings.traceTokenHeaderName)).map(_.value) } else None val newContext = tracer.newContext(defaultTraceName, token) |