Skip to content

Add POST 'application/json' body support#65

Open
imstach wants to merge 2 commits into
autocompletejs:2.7from
imstach:2.7
Open

Add POST 'application/json' body support#65
imstach wants to merge 2 commits into
autocompletejs:2.7from
imstach:2.7

Conversation

@imstach

@imstach imstach commented Sep 6, 2018

Copy link
Copy Markdown

I used the autocomplete for a project and realized it didn't support 'application/json' content type to send the query as a json object.
So I added it to the ajax function : if the HttpMethod is POST and the content-type is application/json I create an object with the query that I stringify to send it as a json object.

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.

1 participant