flancy icon indicating copy to clipboard operation
flancy copied to clipboard

content-type

Open phand00 opened this issue 8 years ago • 1 comments

Is it possible to set content-type on response?

I tried

$Response.ContentType = "application/json" or $Response.Headers["content-type"] = "application/json"

thanks

phand00 avatar Feb 10 '17 19:02 phand00

here is my version of flancy.psm1 that support custom content-type defined by the route map... if nothing is specified for a particular path the default text/html is implemented...

phand00 avatar Feb 13 '17 19:02 phand00