Andy Green
f835779a74
coverity 472863: cookies: length check order wrong
2025-01-22 08:43:45 +00:00
Andy Green
d568eccd4c
spa: use sized local info rather than incoming
...
We allow a default 0 length in the incoming const info to mean a default
size (of 512). We implement it by copying the incoming const info to a
copy in the spa that we can adapt, which is all good.
But in two cases after we dumbly use the incoming const info directly
instead of the adapted copy.
https://github.com/warmcat/libwebsockets/issues/3294
2024-12-13 09:22:26 +00:00
Andy Green
4393edf1a5
esp-idf-update
2024-11-03 07:59:12 +00:00
stropee
e04a3cf132
http: pipeline: handle methods lacking COMPLETED_CLIENT_HTTP
...
Signed-off-by: stropee <simon@sirocha.fr>
2024-11-03 07:59:04 +00:00
Orgad Shaneh
8263a6814e
clean: var unused when no logs
2024-11-02 09:37:27 +00:00
Andy Green
032adce8c3
minimal: add note about binding mount
2024-10-31 15:20:11 +00:00
Andy Green
9dbbd45170
lws_get_urlarg_by_name: drop candidates that wont fit in buf rather than bail
...
https://github.com/warmcat/libwebsockets/issues/3227
2024-09-28 06:03:06 +01:00
zzblydia
fdde9119f7
client hs: fix segmentation fault
...
https://github.com/warmcat/libwebsockets/pull/3171
2024-06-24 09:08:31 +01:00
Andy Green
4abdfa810a
client-http: use enum for failures correctly
...
https://github.com/warmcat/libwebsockets/issues/3159
2024-05-31 17:09:59 +01:00
Dmitry Potapov
3b0eb45518
http: server: _lws_vhost_init_server_af only needed once
...
If we already have vh_listen_sockfd ready, call _lws_vhost_init_server_af
only once, regardless of IPv6 support.
2024-05-12 05:11:54 +01:00
Dmitry Potapov
4eab8f5a19
http: windows: adapt dup() to use windows api
2024-05-12 05:10:22 +01:00
c-jimenez
c57c239368
basic-auth: allow NUL in password
...
https://github.com/warmcat/libwebsockets/issues/3092
2024-03-11 07:54:39 +00:00
Andy Green
378ad62adf
digest: only if we have tls lib to do hashing
2024-02-16 15:45:45 +00:00
Andy Green
1239a2b121
http-digest: coverity: dead code
2024-01-17 08:54:51 +00:00
Andy Green
837db622eb
clean: avoid maybe-uninitialized
...
https://github.com/warmcat/libwebsockets/issues/3049
2024-01-16 07:15:30 +00:00
markmaker
43df4901ee
vhost: server: Ignore a vhost port mismatch when using CONTEXT_PORT_NO_LISTEN_SERVER
...
https://github.com/warmcat/libwebsockets/issues/3044
2024-01-08 14:40:46 +00:00
Ogre Transporter
50ba61082d
windows: clean quirks
...
https://github.com/warmcat/libwebsockets/issues/3039
2024-01-05 05:50:57 +00:00
Andy Green
3207da067e
vhost: allow fd adoption
2024-01-04 11:35:01 +00:00
stropee
22808f049c
http: fix auth digest
2023-12-27 06:34:09 +00:00
Andy Green
7efab5f905
h1: reset pipelined parsing
2023-12-27 06:34:03 +00:00
Andy Green
93ae4cb628
ipv6: avoid spinning on interface set
...
https://github.com/warmcat/libwebsockets/issues/3028
2023-12-14 05:58:15 +00:00
Andy Green
957503436e
http: mounts: LWSMPRO_NO_MOUNT
...
Provide a way to apply exception mount urls that exist on top of a larger
mount, but provide an exception which enforces the url to not be serviced
by the mount code, but by whatever dynamic handler is in place.
2023-12-12 05:57:38 +00:00
Ilya Smelykh
fdfde2ce0b
http: auth digest
2023-12-08 10:25:50 +00:00
tjwalton
83eeb76d66
server: Always return result of _lws_vhost_init_server_af
...
Fixes https://github.com/warmcat/libwebsockets/issues/2702
2023-11-23 09:45:12 +00:00
songbuhuang
2c981f7670
clean: unreachable cruft
...
Signed-off-by: songbuhuang <544824346@qq.com>
2022-09-18 08:17:25 +01:00
Andy Green
af64c7fc4f
http proxy: fix host
2022-09-18 08:17:20 +01:00
qdztxc
173c84a595
ws: tell caller we closed wsi on handshake failure
...
https://github.com/warmcat/libwebsockets/issues/2681
2022-07-12 09:47:56 +01:00
Marco Gratzke
c28b390e77
spa: file upload fix
2022-07-04 14:23:02 +01:00
Paul Shark
8fe3950acd
http: server: correct plugin name in error
2022-06-14 07:37:11 +01:00
Richard Shi
5d56f7651f
http: compression: fix selection
...
https://github.com/warmcat/libwebsockets/issues/2633
2022-05-04 08:43:26 +01:00
Andy Green
f8132e23dc
nsc: fall back to internal headers when no stash
2022-03-25 08:18:29 +00:00
Andy Green
2de67dd0ae
file_ops: vfs: support prefix matches and use of bound ops members
...
VFS needs some small updates... pass in the bound fops as well as the
context fops to the member callbacks. ZIP_FOPS only cared about doing
operations on the platform / context vfs to walk the ZIP file, but other
uses are valid where we are doing operation inside the bound VFS itself.
Also, stash a cx pointer into file ops struct for convenience.
2022-03-15 10:28:09 +00:00
Andy Green
6829dba9a1
http: server: mounts: dont assume Basic Auth if no FILE_OPS
2022-03-15 10:28:09 +00:00
Andy Green
32698a2f4b
lejp-conf: provide matches for block start paths
...
Also valgrind shows we should zero down the lejp context to avoid problems
with the wildcard stack
2022-03-15 10:28:09 +00:00
Andy Green
8cc4c1713d
http: proxy server: move C99 VLA to heap
2022-03-15 10:28:09 +00:00
yogpstop
2148becb3a
http: lws_add_http_header_by_name: add colon if needed
2022-01-27 13:08:35 +00:00
Andy Green
8dc438ce2c
http: access_log: fix nwsi check
...
h2 logging often lacked the IP as it checked the af on the sa46_peer of the
child stream when it meant to check the nwsi one.
2022-01-16 10:48:16 +00:00
Vitaliy Orazov
05997f4503
http: proxying: allow for large headers
...
set the buffer size (rpath) for header processing during
proxying equal to the value in max_http_header_data
2021-12-13 19:02:56 +00:00
Joerg Wendel
fe8170dcdc
http: server: added no-cache handling to mounts
2021-12-13 19:02:56 +00:00
DerKleinePunk
e88a1b1b32
http: cookie_get
...
The loop check shouldn't care about bl any more, since we snipped bl from n
already.
2021-12-02 09:21:27 +00:00
Vitaliy Orazov
5747203406
http proxy: support PUT, PATCH and DELETE methods
2021-11-29 15:18:16 +00:00
Ilya Smelykh
d425691d9f
client: flag defeating default cache-control headers added
2021-11-11 16:55:20 +00:00
Andy Green
3ede7bae26
http: remove stray debug log
2021-11-11 11:52:48 +00:00
Andy Green
81b481ef2f
h2: coverity: check for OOM on dynamic table alloc
...
It can fail, we should check it.
2021-11-09 07:45:58 +00:00
Ron Frederick
b5b7e793d4
server: SO_REUSEPORT: enable with LWS_MAX_SMP > 1
...
Either explicit option selection, or multiple SMP service threads, should
enable SO_REUSEPORT
https://github.com/warmcat/libwebsockets/issues/2470
2021-10-30 06:19:37 +01:00
Andy Green
66afd3da78
coverity: client_reset: no longer any way to get NULL *pwsi
...
Coverity belatedly noticed that client_reset no longer changes *pwsi
2021-10-17 12:03:07 +01:00
Orefkov Aleksander
abef9ba252
http: spa: fetch any params
...
Added the ability to get additional form parameters with unknown names in the form parameters parser lws_spa. The example of using the form parameters parser has been updated. Fixed bug of double freeing memory in the example.
2021-10-15 08:47:52 +01:00
Andy Green
27fac9dd86
warn: avoid one toolchain false positive
2021-09-09 15:27:41 +01:00
xionghui
365328c4d3
http server: allow serving files with special unicode path
2021-09-09 15:27:27 +01:00
Austen Stone
f6954e432c
http: custom hdr: add custom name iterator
2021-08-31 05:45:40 +01:00