We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dadc9e8 commit d121b1bCopy full SHA for d121b1b
1 file changed
LinkIPFSPlugin.py
@@ -2,6 +2,7 @@
2
import re
3
import gevent
4
import html
5
+import socket
6
7
from Plugin import PluginManager
8
from Config import config
@@ -15,9 +16,9 @@
15
16
class UiRequestPlugin(object):
17
def actionWrapper(self, path, extra_headers=None):
18
if path.startswith("/ipfs/") or path.startswith("/ipns/"):
- local_url = "http://127.0.0.1:8080%s" % (path)
19
- gateway_url = "https://ipfs.io%s" % (path)
+ local_url = "http://127.0.0.1:8080%s" % (quote(path))
20
local_timeout = 3
21
+ gateway_url = "https://ipfs.io%s" % (quote(path))
22
try:
23
request = Request(local_url)
24
response = urlopen(request, timeout=local_timeout)
0 commit comments