mirror of
https://gitlab.com/biskuteri-cafe/JKomasto2.git
synced 2024-11-20 06:24:50 +01:00
Fixed bug when redraft makes no changes
(Before this, JKomasto and sometimes the Mastodon web client would get '411 Record Not Found' when submitting the same text after deleting and redrafting. Presumably the Mastodon server caches both whether an idempotency key was fulfilled and which post it leads to, and for some reason it looks up the second and fails.)
This commit is contained in:
parent
df6b7e149e
commit
e6fea4c061
0
BasicHTMLParser.java
Executable file → Normal file
0
BasicHTMLParser.java
Executable file → Normal file
0
ClipboardApi.java
Executable file → Normal file
0
ClipboardApi.java
Executable file → Normal file
0
ComposeWindow.java
Executable file → Normal file
0
ComposeWindow.java
Executable file → Normal file
0
ImageApi.java
Executable file → Normal file
0
ImageApi.java
Executable file → Normal file
0
ImageWindow.java
Executable file → Normal file
0
ImageWindow.java
Executable file → Normal file
0
JKomasto.java
Executable file → Normal file
0
JKomasto.java
Executable file → Normal file
0
LoginWindow.java
Executable file → Normal file
0
LoginWindow.java
Executable file → Normal file
2
MastodonApi.java
Executable file → Normal file
2
MastodonApi.java
Executable file → Normal file
@ -300,7 +300,7 @@ MastodonApi {
|
||||
HttpURLConnection conn = cast(endpoint.openConnection());
|
||||
String s1 = "Bearer " + token;
|
||||
conn.setRequestProperty("Authorization", s1);
|
||||
String s2 = Integer.toString(text.hashCode());
|
||||
String s2 = Integer.toString(handler.hashCode());
|
||||
conn.setRequestProperty("Idempotency-Key", s2);
|
||||
conn.setDoOutput(true);
|
||||
conn.setRequestMethod("POST");
|
||||
|
0
NotificationsWindow.java
Executable file → Normal file
0
NotificationsWindow.java
Executable file → Normal file
0
PostWindow.java
Executable file → Normal file
0
PostWindow.java
Executable file → Normal file
0
ProfileWindow.java
Executable file → Normal file
0
ProfileWindow.java
Executable file → Normal file
0
RepliesWindow.java
Executable file → Normal file
0
RepliesWindow.java
Executable file → Normal file
0
RequestListener.java
Executable file → Normal file
0
RequestListener.java
Executable file → Normal file
0
RichTextPane.java
Executable file → Normal file
0
RichTextPane.java
Executable file → Normal file
0
RichTextPane2.java
Executable file → Normal file
0
RichTextPane2.java
Executable file → Normal file
0
RichTextPane3.java
Executable file → Normal file
0
RichTextPane3.java
Executable file → Normal file
0
RudimentaryHTMLParser.java
Executable file → Normal file
0
RudimentaryHTMLParser.java
Executable file → Normal file
0
TimelineWindow.java
Executable file → Normal file
0
TimelineWindow.java
Executable file → Normal file
0
TwoToggleButton.java
Executable file → Normal file
0
TwoToggleButton.java
Executable file → Normal file
0
WindowUpdater.java
Executable file → Normal file
0
WindowUpdater.java
Executable file → Normal file
Loading…
Reference in New Issue
Block a user