I am trying to send json data from the client to my server using this:
$.ajax({
url : 'http://127.0.0.1:8001/api/v1/pulse/7/',
data : data,
type : 'PATCH',
contentType : 'application/json'
)};
I get a No JSON object could be decoded
.
However when i use PUT
the json object gets sent.
It only doesnt work for PATCH
The backend is Django and the app im using is tastypie
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…