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

register ajax just as a plain mime type. #1603

Merged
merged 1 commit into from
Nov 3, 2021
Merged

register ajax just as a plain mime type. #1603

merged 1 commit into from
Nov 3, 2021

Conversation

jwoertink
Copy link
Member

Purpose

Fixes #1320

Description

If you wanted to set your desired format to be ajax, but you're not sending JSON or XML, then we just set it to plain and return the raw text.

Checklist

  • - An issue already exists detailing the issue/or feature request that this PR fixes
  • - All specs are formatted with crystal tool format spec src
  • - Inline documentation has been added and/or updated
  • - Lucky builds on docker with ./script/setup
  • - All builds and specs pass on docker with ./script/test

@jwoertink jwoertink merged commit bac0f99 into master Nov 3, 2021
@jwoertink jwoertink deleted the issues/1320 branch November 3, 2021 18:08
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.

Unable to use :ajax as an accepted format
2 participants