Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added additional log of original accept header

  • Loading branch information...
commit 14b6ff3fe6ed935e1c0a82f552b54ff773205420 1 parent 570c3c2
@grumpydev grumpydev authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/Nancy/Routing/DefaultRouteInvoker.cs
View
5 src/Nancy/Routing/DefaultRouteInvoker.cs
@@ -130,9 +130,10 @@ private Response ProcessAsNegotiator(object routeResult, NancyContext context)
.Aggregate((t1, t2) => t1 + ", " + t2);
var acceptFormats = compatibleHeaders.Select(h=>h.Item1)
- .Aggregate((t1, t2) => t1 + ", " + t2);
+ .Aggregate((t1, t2) => t1 + ", " + t2);
- sb.AppendFormat("[DefaultRouteInvoker] Accept header: {0}\n", acceptFormats);
+ sb.AppendFormat("[DefaultRouteInvoker] Original accept header: {0}\n", context.Request.Headers["accept"]);
+ sb.AppendFormat("[DefaultRouteInvoker] Coerced accept header: {0}\n", acceptFormats);
sb.AppendFormat("[DefaultRouteInvoker] Acceptable media ranges: {0}\n", allowableFormats);
});
Please sign in to comment.
Something went wrong with that request. Please try again.