Pārlūkot izejas kodu

Set `fetch_url_headers` to `false` by default

JC Brand 3 mēneši atpakaļ
vecāks
revīzija
c368e2dd0c
3 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. 1 0
      dev.html
  2. 2 2
      docs/source/configuration.rst
  3. 1 1
      src/plugins/chatview/index.js

+ 1 - 0
dev.html

@@ -36,6 +36,7 @@
         muc_respect_autojoin: true,
         muc_show_logs_before_join: true,
         notify_all_room_messages: ['discuss@conference.conversejs.org'],
+        fetch_url_headers: true,
         websocket_url: 'wss://conversejs.org/xmpp-websocket',
         // view_mode: 'overlayed',
         // websocket_url: 'ws://chat.example.org:5380/xmpp-websocket',

+ 2 - 2
docs/source/configuration.rst

@@ -951,9 +951,9 @@ Please see the :ref:`websocket-url` configuration setting.
 fetch_url_headers
 -----------------
 
-* Default: ``true``
+* Default: ``false``
 
-If set to ``false``, then Converse won't fetch the headers of URLs to determine
+If set to ``true``, Converse will fetch the headers of URLs to determine
 whether they link to media that can be embedded (e.g. streaming audio).
 
 filter_by_resource

+ 1 - 1
src/plugins/chatview/index.js

@@ -33,7 +33,7 @@ converse.plugins.add('converse-chatview', {
          * loaded by converse.js's plugin machinery.
          */
         api.settings.extend({
-            'fetch_url_headers': true,
+            'fetch_url_headers': false,
             'allowed_audio_domains': null,
             'allowed_image_domains': null,
             'allowed_video_domains': null,