mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Fix invalid accept header in put saver (#8547)
IIUC the charset doesn't belong in the Accept header. It does belong
in a Content-Type header though, see [1] and [2].
FYI this header causes problems for Tiddlyhost which must work around
the invalid mime type, see [3] for the nitty-gritty.
[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept
[2] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
[3] 10cd353552
This commit is contained in:
parent
38657a2323
commit
7f2ab57f78
@ -20,7 +20,7 @@ Retrieve ETag if available
|
|||||||
*/
|
*/
|
||||||
var retrieveETag = function(self) {
|
var retrieveETag = function(self) {
|
||||||
var headers = {
|
var headers = {
|
||||||
Accept: "*/*;charset=UTF-8"
|
Accept: "*/*"
|
||||||
};
|
};
|
||||||
$tw.utils.httpRequest({
|
$tw.utils.httpRequest({
|
||||||
url: self.uri(),
|
url: self.uri(),
|
||||||
|
Loading…
Reference in New Issue
Block a user