branch: elpa/go-mode
commit acec0aa67f7349eae435d74b43d129b65148fcf7
Author: Xu Chunyang <[email protected]>
Commit: Peter Sanford <[email protected]>
Fix Content-Type for https://play.golang.org/share
The url-request-data is not urlencoded, so
application/x-www-form-urlencoded is
wrong. The go playground doesn't care about Content-Type, it always assumes
plaintext in UTF-8.
https: //go.googlesource.com/playground/+/refs/heads/master/share.go#45
Closes: #321 [via git-merge-pr]
---
go-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/go-mode.el b/go-mode.el
index f63df33..58a6196 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -2019,7 +2019,7 @@ code to the Playground. You can disable the confirmation
by setting
(message "Upload aborted")
(let* ((url-request-method "POST")
(url-request-extra-headers
- '(("Content-Type" . "application/x-www-form-urlencoded")))
+ '(("Content-Type" . "text/plain; charset=UTF-8")))
(url-request-data
(encode-coding-string
(buffer-substring-no-properties start end)