Skip to content

content-type #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
phand00 opened this issue Feb 10, 2017 · 1 comment
Open

content-type #44

phand00 opened this issue Feb 10, 2017 · 1 comment

Comments

@phand00
Copy link

phand00 commented Feb 10, 2017

Is it possible to set content-type on response?

I tried

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

thanks

@phand00
Copy link
Author

phand00 commented Feb 13, 2017

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant