Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1752654271, "reponame":"libwebsockets", "desc":"libwebsockets lightweight C networking library", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets", "f":3, "items": [ {"schema":"libjg2-1", "cid":"758982d860dee9b8a77abb6d7b55b624", "commit": {"type":"commit", "time": 1608826476, "time_ofs": 0, "oid_tree": { "oid": "243a9ebe1ac3f815246de19372ea6949d5518aca", "alias": []}, "oid":{ "oid": "3c661ede9e8a49f28ef25739b32d252520b6d4b3", "alias": []}, "msg": "ss: http: make sure we dont duplicate leading path slash if already present", "sig_commit": { "git_time": { "time": 1608826476, "offset": 0 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }, "sig_author": { "git_time": { "time": 1608083618, "offset": -480 }, "name": "Jed Lu", "email": "jianlu@amazon.com", "md5": "ce74f834db5eb16ad715cc95ced04f1f" }}, "body": "ss: http: make sure we dont duplicate leading path slash if already present\n" , "diff": "diff --git a/lib/secure-streams/protocols/ss-h1.c b/lib/secure-streams/protocols/ss-h1.c\nindex a594a60..018efe7 100644\n--- a/lib/secure-streams/protocols/ss-h1.c\n+++ b/lib/secure-streams/protocols/ss-h1.c\n@@ -955,6 +955,11 @@ secstream_connect_munge_h1(lws_ss_handle_t *h, char *buf, size_t len,\n \t/* protocol aux is the path part */\n \n \ti-\u003epath \u003d buf;\n+\n+\t/* skip the unnessary '/' */\n+\tif (*pbasis \u003d\u003d '/')\n+\t\tpbasis \u003d pbasis + 1;\n+\n \tbuf[0] \u003d '/';\n \n \tlws_strexp_init(\u0026exp, (void *)h, lws_ss_exp_cb_metadata, buf + 1, len - 1);\n","s":{"c":1752654271,"u": 1856}} ],"g": 3213,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}