Martin Dosch
c89045ecff
http-upload: use correct units.
2024-02-25 19:36:52 +01:00
Martin Dosch
c6e1a76d90
Http-upload: Fix possible crash.
2024-01-15 20:37:44 +01:00
Martin Dosch
40ee8828b3
Http-upload: fix detection of maximum file size.
2024-01-15 19:48:27 +01:00
Martin Dosch
643842fcb1
http-upload: Improved error handling.
2024-01-14 21:29:19 +01:00
Martin Dosch
7677d2907a
Add experimental support for SOCKS5 proxies.
2024-01-13 15:01:42 +01:00
Martin Dosch
fc1342ab29
Update go modules.
2024-01-10 16:21:39 +01:00
Martin Dosch
a320fb624e
Refuse to upload files if upload slot doesn't provide https.
2023-12-01 13:55:41 +01:00
Martin Dosch
802f57d404
[gofumpt]: Improve formatting.
2023-11-25 19:52:55 +01:00
Martin Dosch
d482347310
Switch back to upstream go-xmpp library.
2023-11-11 14:30:23 +01:00
Martin Dosch
7dbbcf45e7
Add support for SCRAM PLUS variants and mechanism pinning.
2023-11-02 21:29:07 +01:00
Martin Dosch
a034a8e501
Temporarily switch to go-xmpp fork.
2023-11-02 21:05:16 +01:00
Martin Dosch
b004015e18
Don't unwrap errors when checking errors.
2023-08-16 08:49:43 +02:00
Martin Dosch
aad725b721
Unbreak function heads.
2023-06-07 22:33:43 +02:00
Martin Dosch
a912408d16
Wrap and unwrap errors.
2023-06-07 22:28:01 +02:00
Martin Dosch
620130aded
gofumpt
2023-06-06 10:47:40 +02:00
Martin Dosch
f173bcf698
[golangci-lint]: Remove unnecessary newlines.
2023-06-04 16:49:50 +02:00
Martin Dosch
e60334e38d
[golangci-lint]: Use Body.Close().
2023-06-04 16:24:46 +02:00
Martin Dosch
94e82bdef5
[golangci-lint]: regexp: Use MustCompile instead of Compile.
2023-06-04 15:59:17 +02:00
Martin Dosch
1e032e7174
[golangci-lint]: regexp: Use MustCompile instead of Compile.
2023-06-04 15:58:12 +02:00
Martin Dosch
a0b6c045c7
[golangci-lint]: Use constant for result.
2023-06-04 15:57:23 +02:00
Martin Dosch
437cd7eec6
Remove copyright years.
2023-05-11 20:06:23 +02:00
Martin Dosch
e381942708
Use single quotes for stanzas created by beevik/etree.
...
Squashed commit of the following:
commit 8e33952869831f620fa289f1bc997128a40eaee3
Author: Martin Dosch <martin@mdosch.de>
Date: Tue May 9 21:22:40 2023 +0200
Clean go.mod
commit 11bb88fca2d4bb76557e912f46f726e675e0b0cb
Merge: 8d45413
b01ed4b
Author: Martin Dosch <martin@mdosch.de>
Date: Tue May 9 21:21:48 2023 +0200
Merge branch 'master' into singlequotes
commit 8d45413f05
Author: Martin Dosch <martin@mdosch.de>
Date: Tue May 2 09:39:54 2023 +0200
Add more singlequotes. :)
commit c496e2596a
Author: Martin Dosch <martin@mdosch.de>
Date: Tue May 2 09:35:12 2023 +0200
Use single quotes.
commit e4556759d8
Author: Martin Dosch <martin@mdosch.de>
Date: Tue May 2 07:25:09 2023 +0200
Use single quotes for XML attributes.
2023-05-09 21:23:29 +02:00
Martin Dosch
8819c4f13d
Don't capitalize error messages.
2023-04-09 14:56:22 +02:00
Martin Dosch
27828b8d4f
Fix typo in comment.
2023-01-19 20:05:40 +01:00
Martin Dosch
6e3a2490ec
Update comment.
2022-11-26 12:33:12 +01:00
Martin Dosch
cb033bbf59
Improve error handling in XML parsing.
2022-09-02 11:05:42 +02:00
Martin Dosch
2f2a2fd4fd
Rework receiving stanzas.
...
Calling client.Recv() multiple times caused messages not appear
in `--listen` mode as calling Recv() for receiving IQs (e.g. for
receiving Ox keys) also received the messages so they were no longer
available for the Recv in the listening function.
2022-05-03 12:25:43 +02:00
Martin Dosch
0279deae17
Use etree to create disco info request.
2022-04-25 21:43:18 +02:00
Martin Dosch
bfb5e28a03
Change variable names and error strings [golint].
2022-04-25 21:29:14 +02:00
Martin Dosch
d3cdd71f03
Move from encoding/xml to etree.
2022-04-25 11:59:26 +02:00
Martin Dosch
8369d28f9e
Remove debug println…
2022-04-24 01:45:55 +02:00
Martin Dosch
03f744a886
Change from encoding/xml to etree.
2022-04-24 01:45:20 +02:00
Martin Dosch
20953ab1ac
Move file reading into own helper func.
2022-04-18 10:16:00 +02:00
Martin Dosch
9b9fcedf25
Move constants in separate file.
2022-04-10 14:01:23 +08:00
Martin Dosch
5fffba3ef8
Move IQ structs into separate file.
...
This will make httpupload.go look a lot cleaner.
2022-04-09 11:07:26 +08:00
Martin Dosch
3c9f8fac45
Move id function to helpers file.
2022-04-09 11:00:38 +08:00
Martin Dosch
8e958aba52
Fix typo.
2022-04-09 10:54:12 +08:00
Martin Dosch
b4db5512fd
Move iq handling functions in separate file.
2022-04-09 10:51:34 +08:00
Martin Dosch
f0e4a33700
Move iq handling into own function.
2022-04-09 10:46:57 +08:00
Martin Dosch
861c3092fc
Don't exit if a component returns an IQ error.
2022-03-11 00:40:10 +08:00
Martin Dosch
908bc1b753
Revert "Added timeout for IQs."
...
This reverts commit 89c884c3d6
.
2022-03-09 22:31:53 +08:00
Martin Dosch
89c884c3d6
Added timeout for IQs.
2022-03-06 15:25:23 +08:00
Martin Dosch
d51613e0fd
Remove unused escaping of filename.
2022-02-22 21:59:15 +08:00
Martin Dosch
2c2a576152
Improve renaming of files for http-uplad
...
Characters get replaced by `_` now instead of being removed and
`-`, `_`, `.` and `+` won't be removed anymore. (Thx Holger Weiß)
2022-01-29 14:11:52 +01:00
Martin Dosch
fa1356d05d
Change file name for http-uploads.
...
Use alpha numerical names only to workaround
https://github.com/mattn/go-xmpp/issues/132
2022-01-29 13:44:00 +01:00
Kim Alvefur
c43fdc3066
Use xml.Marshal to safely build HTTP Upload <request>
...
Am I doing this Go thing correctly?
2021-09-12 12:38:54 +02:00
Martin Dosch
063db2769f
Xml-escape mimetype in http-upload (thx Zash).
2021-09-12 10:07:04 +02:00
Martin Dosch
a52a15e9d1
Xml-escape filename in http-upload (thanks Zash).
2021-09-12 09:27:20 +02:00
Martin Dosch
ec185d75d7
Update copyright year
2021-03-03 11:48:27 +01:00
Martin Dosch
756157ca1d
Use external package to get proper MIME types
2021-01-29 17:12:32 +01:00