Closed KrzysztofKowalczyk closed 5 years ago
Odd that hasn't popped up earlier. I'll take a look. Thanks.
Definitely an issue. I'll fix this in the upcoming 1.8 release. Good catch. I tend to forget about the delegate strategy.
Thanks for fast reaction
The fix for this is in release 1.8.1, which was published today.
Ersatz is using default delegation strategy for closures, which delegates first to owner of the closure, not to the delegate which in my opinion would be working better.
To add header to response one have to use delegate:
If ersatz would be marked to do delegate first, one could write: