Skip to content

Unable to get correct Content-Type working in spray-json #38

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

Closed
wlk opened this issue May 6, 2016 · 1 comment
Closed

Unable to get correct Content-Type working in spray-json #38

wlk opened this issue May 6, 2016 · 1 comment

Comments

@wlk
Copy link
Contributor

wlk commented May 6, 2016

I'm unable to get correct Content-Type as a response from spray-json marshaling (in akka-http).

I'm using similar code to this in my routing:

complete {
    val u: User = service.getUser(...)
    Jsonapi.asRootObject(u)
}

I have appropriate JsonapiRootObjectWriter[User] in scope and getting JSON output as expected, only issue I have is that Content-Type is application/json instead of application/vnd.api+json

I'm using latest scala-jsonapi and akka-http v 2.4.4

@wlk
Copy link
Contributor Author

wlk commented May 6, 2016

This is fixed in #39

@wlk wlk closed this as completed May 6, 2016
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