Commit Graph

66 Commits (master)

Author SHA1 Message Date
Martin Dosch d2f758b4f9
Use `fmt.Errorf()` instead of `errors.New()` to create new error messages. 2 weeks ago
Martin Dosch c89045ecff
http-upload: use correct units. 3 months ago
Martin Dosch c6e1a76d90
Http-upload: Fix possible crash. 5 months ago
Martin Dosch 40ee8828b3
Http-upload: fix detection of maximum file size. 5 months ago
Martin Dosch 643842fcb1
http-upload: Improved error handling. 5 months ago
Martin Dosch 7677d2907a
Add experimental support for SOCKS5 proxies. 5 months ago
Martin Dosch fc1342ab29
Update go modules. 5 months ago
Martin Dosch a320fb624e
Refuse to upload files if upload slot doesn't provide https. 6 months ago
Martin Dosch 802f57d404
[gofumpt]: Improve formatting. 6 months ago
Martin Dosch d482347310
Switch back to upstream go-xmpp library. 7 months ago
Martin Dosch 7dbbcf45e7
Add support for SCRAM PLUS variants and mechanism pinning. 7 months ago
Martin Dosch a034a8e501
Temporarily switch to go-xmpp fork. 7 months ago
Martin Dosch b004015e18
Don't unwrap errors when checking errors. 10 months ago
Martin Dosch aad725b721
Unbreak function heads. 1 year ago
Martin Dosch a912408d16
Wrap and unwrap errors. 1 year ago
Martin Dosch 620130aded
gofumpt 1 year ago
Martin Dosch f173bcf698
[golangci-lint]: Remove unnecessary newlines. 1 year ago
Martin Dosch e60334e38d
[golangci-lint]: Use Body.Close(). 1 year ago
Martin Dosch 94e82bdef5
[golangci-lint]: regexp: Use MustCompile instead of Compile. 1 year ago
Martin Dosch 1e032e7174
[golangci-lint]: regexp: Use MustCompile instead of Compile. 1 year ago
Martin Dosch a0b6c045c7
[golangci-lint]: Use constant for result. 1 year ago
Martin Dosch 437cd7eec6
Remove copyright years. 1 year ago
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.
1 year ago
Martin Dosch 8819c4f13d
Don't capitalize error messages. 1 year ago
Martin Dosch 27828b8d4f
Fix typo in comment. 1 year ago
Martin Dosch 6e3a2490ec
Update comment. 2 years ago
Martin Dosch cb033bbf59
Improve error handling in XML parsing. 2 years ago
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.
2 years ago
Martin Dosch 0279deae17 Use etree to create disco info request. 2 years ago
Martin Dosch bfb5e28a03 Change variable names and error strings [golint]. 2 years ago
Martin Dosch d3cdd71f03 Move from encoding/xml to etree. 2 years ago
Martin Dosch 8369d28f9e Remove debug println… 2 years ago
Martin Dosch 03f744a886 Change from encoding/xml to etree. 2 years ago
Martin Dosch 20953ab1ac Move file reading into own helper func. 2 years ago
Martin Dosch 9b9fcedf25 Move constants in separate file. 2 years ago
Martin Dosch 5fffba3ef8 Move IQ structs into separate file.
This will make httpupload.go look a lot cleaner.
2 years ago
Martin Dosch 3c9f8fac45 Move id function to helpers file. 2 years ago
Martin Dosch 8e958aba52 Fix typo. 2 years ago
Martin Dosch b4db5512fd Move iq handling functions in separate file. 2 years ago
Martin Dosch f0e4a33700 Move iq handling into own function. 2 years ago
Martin Dosch 861c3092fc Don't exit if a component returns an IQ error. 2 years ago
Martin Dosch 908bc1b753 Revert "Added timeout for IQs."
This reverts commit 89c884c3d6.
2 years ago
Martin Dosch 89c884c3d6 Added timeout for IQs. 2 years ago
Martin Dosch d51613e0fd Remove unused escaping of filename. 2 years ago
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ß)
2 years ago
Martin Dosch fa1356d05d Change file name for http-uploads.
Use alpha numerical names only to workaround
https://github.com/mattn/go-xmpp/issues/132
2 years ago
Kim Alvefur c43fdc3066 Use xml.Marshal to safely build HTTP Upload <request>
Am I doing this Go thing correctly?
3 years ago
Martin Dosch 063db2769f Xml-escape mimetype in http-upload (thx Zash). 3 years ago
Martin Dosch a52a15e9d1 Xml-escape filename in http-upload (thanks Zash). 3 years ago
Martin Dosch ec185d75d7 Update copyright year 3 years ago