URL encode target header in PATCH requests

This commit is contained in:
7shi
2024-12-01 05:15:47 +09:00
parent 9e9547e45d
commit 12ea3bc43c

View File

@@ -1,4 +1,5 @@
import requests
import urllib.parse
from typing import Any
class Obsidian():
@@ -106,7 +107,7 @@ class Obsidian():
'Content-Type': 'text/markdown',
'Operation': operation,
'Target-Type': target_type,
'Target': target
'Target': urllib.parse.quote(target)
}
def call_fn():