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

Added Axios call for AddProduct #21

Merged
merged 1 commit into from Feb 4, 2019
Merged

Conversation

nim1821
Copy link
Collaborator

@nim1821 nim1821 commented Feb 4, 2019

  1. Vue-resource is unable to encode array data

  2. Axios is unable to send form-data by default unless manually encoded.

ie; axios.defaults(..) doesnt work. see here axios/axios#362.

Possible solution: Use Axios ONLY when tags must be posted and manually stringify on a case by case basis.

This PR restores AddProduct functionality but its a lot of boilerplate to switch to Axios every time we need to send tags.

Partially closes #20

@nim1821 nim1821 merged commit 554d5c5 into imarmanis:master Feb 4, 2019
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.

Post requests with tag arrays are not working.
1 participant