mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-18 10:37:11 +00:00
Merge pull request #99 from telotortium/method
Explicitly set `url-request-method' to GET in khoj.el
This commit is contained in:
commit
4abd51cb04
1 changed files with 4 additions and 2 deletions
|
@ -226,7 +226,8 @@ Use `which-key` if available, else display simple message in echo area"
|
|||
|
||||
(defun khoj--get-enabled-content-types ()
|
||||
"Get content types enabled for search from API."
|
||||
(let ((config-url (format "%s/config/data" khoj-server-url)))
|
||||
(let ((config-url (format "%s/config/data" khoj-server-url))
|
||||
(url-request-method "GET"))
|
||||
(with-temp-buffer
|
||||
(erase-buffer)
|
||||
(url-insert-file-contents config-url)
|
||||
|
@ -250,7 +251,8 @@ Use `which-key` if available, else display simple message in echo area"
|
|||
Render results in BUFFER-NAME."
|
||||
;; get json response from api
|
||||
(with-current-buffer buffer-name
|
||||
(let ((inhibit-read-only t))
|
||||
(let ((inhibit-read-only t)
|
||||
(url-request-method "GET"))
|
||||
(erase-buffer)
|
||||
(url-insert-file-contents query-url)))
|
||||
;; render json response into formatted entries
|
||||
|
|
Loading…
Reference in a new issue