Skip to content
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

Added response headers to set content types for api resources #152

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Added response headers to set content types for api resources #152

wants to merge 3 commits into from

Conversation

mikesir87
Copy link
Contributor

Noticed a few API resources that didn't have the header set. Makes some JavaScript-related stuff easier when the headers are set.

@xetorthio
Copy link
Contributor

This is totally necessary. I wonder it we should make it as a middleware instead on each handler.

@mikesir87
Copy link
Contributor Author

Great question. I'm still spinning up on Go and the frameworks in place, so wasn't aware of that option. So, feel free to do it that way. I mostly just copy/pasted what I saw the NewSession handler :)

@mikesir87
Copy link
Contributor Author

Would it be possible to go ahead and get this merged in until we figure out another (potentially better) route?

@marcosnils
Copy link
Contributor

@mikesir87 I'll check it out today.

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

Successfully merging this pull request may close these issues.

None yet

3 participants