Closed DXInfinity closed 3 years ago
@DXInfinity Can you add a test? Thank you for your help, and apologies I didn't see this PR sooner.
@DXInfinity Just a nudge on adding a test here. Thank you very much for the help with this PR.
I jumped onto this branch to try and set up a couple of tests for it to get the PR merged through. It looks like the disable encoding option gets overwritten in the RazorEngineBuilder class. I'm examining the logic there to see if it can be an easy win. One immediate complexity I see, is that certain values for options could be combined, while others would overwrite. I'm going to default to throwing an error if both methods are used for the sake of consistency.
Addressed in subsequent PR #373 which includes test
DisableEncoding option was not applied to TemplatePage retrieved from cache.