mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
ss: http: make sure we dont duplicate leading path slash if already present
This commit is contained in:
parent
f850223cad
commit
c05ee8f4ae
1 changed files with 5 additions and 0 deletions
|
@ -758,6 +758,11 @@ secstream_connect_munge_h1(lws_ss_handle_t *h, char *buf, size_t len,
|
|||
/* protocol aux is the path part */
|
||||
|
||||
i->path = buf;
|
||||
|
||||
/* skip the unnessary '/' */
|
||||
if (*pbasis == '/')
|
||||
pbasis = pbasis + 1;
|
||||
|
||||
buf[0] = '/';
|
||||
|
||||
lws_strexp_init(&exp, (void *)h, lws_ss_exp_cb_metadata, buf + 1, len - 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue