1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +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:
Simon Baird 2024-09-06 14:55:51 -04:00 committed by GitHub
parent 38657a2323
commit 7f2ab57f78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,7 +20,7 @@ Retrieve ETag if available
*/
var retrieveETag = function(self) {
var headers = {
Accept: "*/*;charset=UTF-8"
Accept: "*/*"
};
$tw.utils.httpRequest({
url: self.uri(),