Skip to content

Commit

Permalink
Add JSON Content-Type to POST header
Browse files Browse the repository at this point in the history
FastAPI introduced Content-Type checking in v0.65.2
(see tiangolo/fastapi#2118)
  • Loading branch information
clwgg committed Jul 1, 2021
1 parent 26ceb9b commit 53b3ffa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions anaconda-mode.el
Expand Up @@ -382,6 +382,7 @@ Apply CALLBACK to the call result when retrieve it. Remote
COMMAND must expect four arguments: python buffer content, line
number position, column number position and file path."
(let ((url-request-method "POST")
(url-request-extra-headers `(("Content-Type" . "application/json")))
(url-request-data (anaconda-mode-jsonrpc-request command)))
(url-retrieve
(format "http://%s:%s" anaconda-mode-localhost-address (anaconda-mode-port))
Expand Down

0 comments on commit 53b3ffa

Please sign in to comment.