Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
0eaaf0c
Fix: open as text link on downloads now uses utf-8 encoding
ArneBab Nov 8, 2025
58077de
Fix: set utf-8 as fallback, as it should have been.
ArneBab Nov 9, 2025
36359ef
Merge remote-tracking branch 'torusrxxx/patch-3' into open-as-plain-t…
ArneBab Nov 23, 2025
827bec9
⬆️ Update Mockito to latest 2.x version
Bombe Sep 7, 2025
a72bc74
💚 Exclude ancient Hamcrest dependency from JUnit
Bombe Nov 25, 2025
71b771f
✅ Add matchers for verifying links in HTML documents
Bombe Nov 25, 2025
bdfd1e3
✅ Add possibility to use different translation for each test
Bombe Nov 25, 2025
322ff7f
✅ Add test implementation of ToadletContext
Bombe Nov 25, 2025
5763d0e
🐛 Set charset correctly
Bombe Nov 25, 2025
b2c13f4
✅ Add matchers for TestToadletContext
Bombe Nov 25, 2025
ec7959d
✅ Add second test for FProxyToadlet
Bombe Nov 25, 2025
ada6f7e
✅ Allow TestToadletContext to execute the request itself
Bombe Nov 26, 2025
68b73b0
✅ Add test for requesting an invalid key via parameter
Bombe Nov 26, 2025
ddf65d0
✅ Add test for requesting valid key via parameter
Bombe Nov 26, 2025
0fa9dc0
✅ Add matcher for the HTML document of a toadlet context
Bombe Nov 26, 2025
06758cb
✅ Add matchers for HTML
Bombe Nov 26, 2025
c167169
✅ Add test for / redirecting to welcome toadlet
Bombe Nov 26, 2025
1e67343
✅ Add test for /favicon.ico redirect
Bombe Nov 26, 2025
7c9e02a
✅ Add hasContentType matcher for TestToadletContext
Bombe Nov 26, 2025
cddc738
✅ Add test for feed generation
Bombe Nov 26, 2025
65944c6
✨ Allow activating robots file generation in context
Bombe Nov 26, 2025
1896e58
✅ Add tests for /robots.txt
Bombe Nov 26, 2025
c5bb0c5
✅ Add tests for some permanent redirects
Bombe Nov 26, 2025
b5f28eb
✨ Add Document matcher that can locate Elements
Bombe Nov 26, 2025
e8c58c3
✅ Add test for requesting a failed download
Bombe Nov 26, 2025
1728fed
✨ Add Document matcher that can locate and verify Elements
Bombe Nov 26, 2025
e467ab1
✨ Add Element matcher that can verify attributes
Bombe Nov 26, 2025
c8c48e7
♻️ Use improved matchers
Bombe Nov 26, 2025
f55d7f5
✅ Add test for the progress page
Bombe Nov 26, 2025
37ebe6b
✅ Add more tests for redirects
Bombe Nov 26, 2025
b567271
Merge remote-tracking branch 'Bombe/open-as-plain-text-utf8' into ope…
ArneBab May 1, 2026
09eb720
Add jsoup verification key
ArneBab May 1, 2026
556ca00
🧑‍💻 Make test (slightly) less confusing
Bombe May 1, 2026
cf65dd4
Merge remote-tracking branch 'Bombe/open-as-plain-text-utf8' into ope…
ArneBab May 1, 2026
695c144
⬆️ Use jakarta activation-api instead of relying on javax.activation
Bombe May 1, 2026
e56bad8
Merge remote-tracking branch 'Bombe/open-as-plain-text-utf8' into ope…
ArneBab May 1, 2026
3f0357a
Refresh the verification metadata
ArneBab May 1, 2026
ccf3694
Merge branch 'next' into open-as-plain-text-utf8
ArneBab May 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/freenet/clients/http/FProxyToadlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ public void run() {
}
option = optionList.addChild("li");
// FIXME: is this safe? See bug #131
MediaType textMediaType = new MediaType("text/plain");
MediaType textMediaType = new MediaType("text/plain;charset=utf-8");
textMediaType.setParameter("charset", (e.getExpectedMimeType() != null) ? MediaType.getCharsetRobust(e.getExpectedMimeType()) : null);
Comment thread
Bombe marked this conversation as resolved.
Outdated
NodeL10n.getBase().addL10nSubstitution(option, "FProxyToadlet.openAsText", new String[] { "link" }, new HTMLNode[] { HTMLNode.link(getLink(key, textMediaType.toString(), maxSize, null, false, maxRetries, overrideSize)) });
option = optionList.addChild("li");
Expand Down