I expect to see the template as it should :smiley:
But I get the template with some special chars. It looks like bad decoding
The problem comes from the size limitation.
If the template package is used, it can calls Write multiple times with variable length.
In any case the response writer must be the same for the all response inside the same request. So the package as is, is not good.
I made some modifications to prevent using different response writers on successive calls.
But the size limitation become pretty pointless with template or other handlers calling multiple times the Write function.
The problem comes from the size limitation.
If the template package is used, it can calls Write multiple times with variable length. In any case the response writer must be the same for the all response inside the same request. So the package as is, is not good.
I made some modifications to prevent using different response writers on successive calls.
But the size limitation become pretty pointless with template or other handlers calling multiple times the Write function.