Vsevolod Stakhov
14c13854d3
[Rework] Further types conversion (no functional changes)
3 months ago
Vsevolod Stakhov
6b2b416718
[Rework] Remove some of the GLib types in lieu of standard ones
This types have constant conflicts with the system ones especially on OSX.
3 months ago
moisseev
e6bde4044a
[Minor] Add HTTP_MAGIC_SVG key
3 months ago
moisseev
1ef13a2419
[Minor] Serve SVG with the correct CT
3 months ago
Vsevolod Stakhov
f8210a5ba9
[Test] Add unit tests
4 months ago
Vsevolod Stakhov
d3a56d9509
[Fix] Try to fix url path issue
4 months ago
Vsevolod Stakhov
ef58324535
[Rework] More steps to do refactoring
10 months ago
Vsevolod Stakhov
537a7180a0
[Rework] Use clang-format to unify formatting in all sources
No meaningful changes.
11 months ago
Vsevolod Stakhov
3babc536a5
[Minor] Add port to the `Host` header if using non-standard ports
1 year ago
Vsevolod Stakhov
b2f0dd775c
[Minor] Get rid of some compiler warnings
1 year ago
Vsevolod Stakhov
96b94707c1
[Rework] Make http normalize path function a generic function
1 year ago
moisseev
1225632c64
[Minor] Fix copy-paste error
PR: #4302
1 year ago
moisseev
3afe8f2ee4
[Fix] Fix favicon.ico Content-Type header
Issue: #4301
1 year ago
Vsevolod Stakhov
cebd539c17
[Minor] Fix format string
1 year ago
Vsevolod Stakhov
41d4dbca11
[Fix] Fix several issues with the HTTP keepalive parsing
1 year ago
Vsevolod Stakhov
3bf1e3a890
[Minor] Fix several issues in the parsing of the timeout in Keep-Alive header
1 year ago
Vsevolod Stakhov
9117058f15
[Minor] Allow to specify mempool when copying an IP address structure
2 years ago
Josh Soref
2b8e6958f4
Spelling (#4086)
[Rework] Massive spelling fix from @jsoref
2 years ago
Vsevolod Stakhov
00927e0ef0
[Fix] Fix host header usage in lua_http
The issue is that `rspamd_http_message_get_http_host` actually returns
non zero-terminated string in the case where `Host` header is found in a
message. Hence, we *cannot* treat it as a zero terminated string.
The proper approach is to use `rspamd_ftok_t` everywhere for strings
but the change will be too intrusive, since it also involves many libraries,
e.g. `rdns` and others.
The current approach is much simplier: just copy a string into a temporary
buffer ensuring that it is zero terminated in all the cases.
Issue: #4051
2 years ago
Vsevolod Stakhov
7fd6b2b766
[Fix] Fix HTTP(s) client timeout
2 years ago
Vsevolod Stakhov
caac14e056
[Minor] Use unified method to obtain http host
2 years ago
Vsevolod Stakhov
05d6d354ec
[Feature] Allow to skip DNS resolution for keep-alive connections
2 years ago
Vsevolod Stakhov
4fe64bdcb5
[Minor] Fix ssl connection reuse
2 years ago
Vsevolod Stakhov
b81a068aea
[Rework] Allow to restore SSL handlers after keepalive pooling
2 years ago
Vsevolod Stakhov
315b61b319
[Rework] Rework SSL flag operations
2 years ago
Vsevolod Stakhov
707357d35e
[Rework] Include SSL flag into keepalive hash
2 years ago
Vsevolod Stakhov
fe5a7f1829
[Minor] Try to fix keepalive for SSL connections
2 years ago
Vsevolod Stakhov
8035236f55
[Fix] Do not double call error handler on ssl errors in the timeout path
2 years ago
Vsevolod Stakhov
384e037f52
[Minor] Fix some more issues
Found by: coverity scan
2 years ago
Vsevolod Stakhov
b17f6c2113
[Fix] Fix http message flag shift
Issue: #3872
2 years ago
Vsevolod Stakhov
8cc17f8819
[Minor] Fix formatting
2 years ago
Vsevolod Stakhov
e4d4f49e87
[Fix] Fix brain-damaged behaviour when http request has a custom Host header
2 years ago
Vsevolod Stakhov
0250213db3
Revert "[Minor] Implement backslashes replacement while we normalise http paths"
This reverts commit 05d1951b5c
.
2 years ago
Vsevolod Stakhov
05d1951b5c
[Minor] Implement backslashes replacement while we normalise http paths
2 years ago
Vsevolod Stakhov
b1e10ef14e
[Minor] Make HTTP reply codes more consistent with the standard
Reported by: Steve Sturges
3 years ago
Vsevolod Stakhov
10bb08dd2d
[Minor] Various fixes for display link detection
3 years ago
Christian Göttsche
08adbf76c1
Check gsize against G_MAXSIZE not ULLONG_MAX
/builds/cgzones/rspamd/debian/output/source_dir/src/libserver/http/http_message.c: In function 'rspamd_http_message_set_body':
/builds/cgzones/rspamd/debian/output/source_dir/src/libserver/http/http_message.c:201:23: warning: comparison is always true due to limited range of data type [-Wtype-limits]
201 | if (len != 0 && len != ULLONG_MAX) {
| ^~
/builds/cgzones/rspamd/debian/output/source_dir/src/libserver/http/http_message.c:230:23: warning: comparison is always true due to limited range of data type [-Wtype-limits]
230 | if (len != 0 && len != ULLONG_MAX) {
| ^~
3 years ago
Vsevolod Stakhov
f1262b46f6
[Minor] Fix lifetime
This is a reason why I hate C
3 years ago
Vsevolod Stakhov
b48fa1b053
[CritFix] Fix controller paths normalisation
It fixes errors like 'rspamd_controller_handle_lua_plugin: plugin handler
/plugins/selectors/list_extractorstors has not been found'
3 years ago
Vsevolod Stakhov
35e67fa3f0
[Minor] Allow to pass socket's ownership to http connection object
4 years ago
Vsevolod Stakhov
b8a099632f
[Feature] Add multiple base32 alphabets for decoding
4 years ago
Vsevolod Stakhov
c3eed60d74
[Minor] Use stack for keep-alive pool
4 years ago
Vsevolod Stakhov
fad056e59b
[Minor] Check socket error when reusing redis pool connections
4 years ago
Vsevolod Stakhov
bc17f9f5d0
[Minor] Check for socket error before reusing keep-alive connection
4 years ago
Vsevolod Stakhov
bae50b5b9c
[Minor] Fix another close/ev_modify race
4 years ago
Vsevolod Stakhov
230dcf4abe
[Minor] Fix order of objects destruction for http keepalive conns
4 years ago
Vsevolod Stakhov
edc8253e01
[Minor] One more trailing slash fix + tests
4 years ago
Vsevolod Stakhov
814c0d16ad
[Minor] Fix trailing slash normalisation
4 years ago
Vsevolod Stakhov
4f68ea16a3
[Minor] Fix some of the moved functions
4 years ago
Vsevolod Stakhov
41e28d1148
[Rework] Further project structure reorganisation
4 years ago