Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

fixes api route default content-type #111

Merged
merged 1 commit into from
Feb 3, 2018
Merged

fixes api route default content-type #111

merged 1 commit into from
Feb 3, 2018

Conversation

samhatchett
Copy link
Contributor

fixes issue where api routes were being defaulted to text/html. Page routes should be text/html, but api routes could be json, zip files, etc., and express does some type-guessing to assist in case the user code does not specify the content-type.

fixes issue where api routes were being defaulted to text/html. Page routes should be text/html, but api routes could be json, zip files, etc., and express does some type-guessing to assist in case the user code does not specify the content-type.
@samhatchett
Copy link
Contributor Author

likely to conflict with PR #101

@Rich-Harris Rich-Harris merged commit 71cfdd2 into sveltejs:master Feb 3, 2018
@Rich-Harris
Copy link
Member

thank you! remarkably, it merged perfectly. Not bad, git

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

Successfully merging this pull request may close these issues.

None yet

2 participants