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.
2 years 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.
3 years ago
Martin Dosch
5fffba3ef8
Move IQ structs into separate file.
...
This will make httpupload.go look a lot cleaner.
3 years ago
Martin Dosch
3c9f8fac45
Move id function to helpers file.
3 years ago
Martin Dosch
8e958aba52
Fix typo.
3 years ago
Martin Dosch
b4db5512fd
Move iq handling functions in separate file.
3 years ago
Martin Dosch
f0e4a33700
Move iq handling into own function.
3 years ago
Martin Dosch
861c3092fc
Don't exit if a component returns an IQ error.
3 years ago
Martin Dosch
908bc1b753
Revert "Added timeout for IQs."
...
This reverts commit 89c884c3d6
.
3 years ago
Martin Dosch
89c884c3d6
Added timeout for IQs.
3 years ago
Martin Dosch
d51613e0fd
Remove unused escaping of filename.
3 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ß)
3 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
3 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
4 years ago
Martin Dosch
756157ca1d
Use external package to get proper MIME types
4 years ago
Martin Dosch
9ad95a24d5
Fix format [gofmt]
4 years ago
Martin Dosch
0d26691606
Use certain headers provided by http-upload component (thx Zash)
4 years ago
Martin Dosch
c0d7514674
Check for http status code.
5 years ago
Martin Dosch
758cb6a3f2
Check IQ replies for type="result".
5 years ago
Martin Dosch
6d6de2f03c
Remove already done TODO item
5 years ago
Martin Dosch
2e3e0e113d
Also check to be in the right FORM.
5 years ago
Martin Dosch
21983f6555
Fix a sed failure in a comment.
5 years ago
Martin Dosch
ff90c6b538
Update TODO for http upload.
5 years ago
Martin Dosch
9702df6c84
Propery determine the http-upload max-file-size.
5 years ago
Martin Dosch
0d6d4a5479
Check if file is exceeding maximum http upload size.
5 years ago
Martin Dosch
db2ccee50e
Send http-upload in OOB message
5 years ago
Martin Dosch
45e69386f4
Remove debugging output
5 years ago
Martin Dosch
6a781a7b97
Add error checks.
5 years ago
Martin Dosch
74967028d6
Update TODO
5 years ago
Martin Dosch
9fd205f90f
Add experimental http-upload
5 years ago