signal-desktop/js
Lilia d1f7f5ee8c Fix json parsing exceptions obscuring server errors (#1605)
I got a 413 (Rate limit exceeded) error from the server while fetching prekeys.
The client tried to parse the response as json since we expect json from the
prekey endpoint, which threw an exception because the response was not json.
This change prevents us from treating the response as json unless it has the
Content-Type header set accordingly.

If for some reason, the client and server disagree on whether the response
should be or is json, we'll default to treating it as text.

// FREEBIE
2017-10-24 15:54:46 -07:00
..
models Re-enable read receipts and read syncs (#1604) 2017-10-24 10:29:45 -07:00
views Load profiles for a conversation without blocking convo load (#1570) 2017-10-18 11:59:12 -07:00
background.js Only start the app up when we've fetched all conversations (#1597) 2017-10-23 16:02:49 -07:00
backup.js Fully eliminate debug from imported data (#1556) 2017-10-11 14:41:32 -07:00
chromium.js Remove extension.notification 2017-09-14 16:53:45 -07:00
components.js Update autosize, which should fix stack overflow error (#1560) 2017-10-13 11:44:35 -07:00
conversation_controller.js Improve fixtures, restore InboxView rendering on the test page (#1562) 2017-10-13 16:48:50 -07:00
database.js Move logging to disk via bunyan 2017-09-25 15:00:34 -07:00
delivery_receipts.js Feature: Blue check marks for read messages if opted in (#1489) 2017-10-04 15:28:43 -07:00
emoji_util.js Upgrade emoji support (#1482) 2017-09-15 13:22:11 -07:00
expire.js Build expiration date 2017-09-14 16:53:38 -07:00
expiring_messages.js Fetch all conversations on startup of app, not on inbox load (#1437) 2017-09-06 18:18:46 -07:00
focus_listener.js Move focus listeners to their own file 2017-09-14 16:53:37 -07:00
i18n.js Use correct locale, fall back to en if we don't have translations 2017-09-14 16:53:47 -07:00
keychange_listener.js Fetch conversations once, clean up ConversationController API (#1420) 2017-09-01 09:10:41 -07:00
libphonenumber-util.js Refactor number parsing and validation 2015-12-09 18:58:51 -08:00
libsignal-protocol-worker.js Update libsignal-protocol v1.0.0 2016-06-14 16:27:34 -07:00
libtextsecure.js Fix json parsing exceptions obscuring server errors (#1605) 2017-10-24 15:54:46 -07:00
logging.js Load debug log dialog immediately, then populate log data (#1540) 2017-10-04 14:40:35 -07:00
Mp3LameEncoder.min.js Copy audio-related files into js/ instead of symlinking them (#1456) 2017-09-14 17:03:18 -07:00
notifications.js Fix audio notifications on linux (#1526) 2017-10-03 11:08:14 -07:00
read_receipts.js Feature: Blue check marks for read messages if opted in (#1489) 2017-10-04 15:28:43 -07:00
read_syncs.js Feature: Blue check marks for read messages if opted in (#1489) 2017-10-04 15:28:43 -07:00
registration.js Refactor registration event 2016-09-20 13:42:33 -07:00
reliable_trigger.js Apply reliable trigger to Backbone.Collection as well 2017-08-04 12:03:25 -07:00
rotate_signed_prekey_listener.js Reschedule all timers on time travel, set interval back to 1000ms 2017-09-14 16:53:53 -07:00
signal_protocol_store.js isUntrusted: Return false if firstUse is true 2017-08-04 12:03:25 -07:00
spell_check.js Merge locale-provided strings into english for failover support 2017-09-14 17:03:17 -07:00
storage.js Import: Wait until db writes resolve before saying we're done (#1401) 2017-09-14 17:03:17 -07:00
wall_clock_listener.js Reschedule all timers on time travel, set interval back to 1000ms 2017-09-14 16:53:53 -07:00
WebAudioRecorderMp3.js Copy audio-related files into js/ instead of symlinking them (#1456) 2017-09-14 17:03:18 -07:00