Skip to content

Ensure content-type properly reflects gateway kernelspec resources #16

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
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kevin-bates
Copy link
Owner

The APIHandler.finish() method unconditionally overrides the header's Content-type to application/json despite the GatewayResourceHandler setting it to a mime-type corresponding to the resource's extension.

This pull request enables the caller to indicate the ContentType that should be set into the header in APIHandler.finish() where application/json is the default if no content type is specified.

@kevin-bates kevin-bates added the bug Something isn't working label Feb 20, 2023
@kevin-bates kevin-bates force-pushed the gateway-resource-content-type branch from 89da3a3 to 6747756 Compare February 21, 2023 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant