Merge pull request #2 from 7shi/fix-quote
URL encode target header in PATCH requests
This commit is contained in:
@@ -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():
|
||||
|
Reference in New Issue
Block a user