KTAtkinson / crypto-im

Chat client implemented with Python, Flask, and PostgreSQL.
1 stars 0 forks source link

Fix messy ajax sendMessage javascript #4

Open KTAtkinson opened 8 years ago

KTAtkinson commented 8 years ago

Fix this ajax call so there is no need to stringify the javacript request before sending it. This may be as easy as just setting a header indicating that this is JSON.

KTAtkinson commented 8 years ago

15 made it a bit better, but maybe more can be done.

Look at jquery.serializeArray, this may be helpful here.