{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1752655167,
"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":"a666d3b0e0cbbe631dcb3f79f7638504",
"commit": {"type":"commit",
"time": 1745934926,
"time_ofs": 60,
"oid_tree": { "oid": "d027f04e4fdb6c6aadeb21d5273d222e192561ca", "alias": []},
"oid":{ "oid": "ca0279cffaa16154d853f2b4b74ec1329836f34a", "alias": []},
"msg": "uncommon-headers: fix ss changes for PATCH / PUT",
"sig_commit": { "git_time": { "time": 1745934926, "offset": 60 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },
"sig_author": { "git_time": { "time": 1745571734, "offset": 60 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }},
"body": "uncommon-headers: fix ss changes for PATCH / PUT\n"
,
"diff": "diff --git a/lib/secure-streams/protocols/ss-h1.c b/lib/secure-streams/protocols/ss-h1.c\nindex 77a71c3..bee646e 100644\n--- a/lib/secure-streams/protocols/ss-h1.c\n+++ b/lib/secure-streams/protocols/ss-h1.c\n@@ -252,9 +252,11 @@ lws_apply_metadata(lws_ss_handle_t *h, struct lws *wsi, uint8_t *buf,\n \t */\n \n \tif (h-\u003epolicy-\u003eu.http.method \u0026\u0026 (\n-\t\t(!strcmp(h-\u003epolicy-\u003eu.http.method, \u0022POST\u0022) ||\n+#if defined(LWS_WITH_HTTP_UNCOMMON_HEADERS) || defined(LWS_HTTP_HEADERS_ALL)\n \t\t !strcmp(h-\u003epolicy-\u003eu.http.method, \u0022PATCH\u0022) ||\n-\t\t !strcmp(h-\u003epolicy-\u003eu.http.method, \u0022PUT\u0022))) \u0026\u0026\n+\t\t !strcmp(h-\u003epolicy-\u003eu.http.method, \u0022PUT\u0022) ||\n+#endif\n+\t\t(!strcmp(h-\u003epolicy-\u003eu.http.method, \u0022POST\u0022))) \u0026\u0026\n \t wsi-\u003ehttp.writeable_len) {\n \t\tif (!(h-\u003epolicy-\u003eflags \u0026\n \t\t\tLWSSSPOLF_HTTP_NO_CONTENT_LENGTH)) {\n@@ -840,8 +842,10 @@ malformed:\n \t\tif ((h-\u003epolicy-\u003eprotocol \u003d\u003d LWSSSP_H1 ||\n \t\t h-\u003epolicy-\u003eprotocol \u003d\u003d LWSSSP_H2) \u0026\u0026\n \t\t h-\u003ebeing_serialized \u0026\u0026 (\n+#if defined(LWS_WITH_HTTP_UNCOMMON_HEADERS) || defined(LWS_HTTP_HEADERS_ALL)\n \t\t\t\t!strcmp(h-\u003epolicy-\u003eu.http.method, \u0022PUT\u0022) ||\n \t\t\t\t!strcmp(h-\u003epolicy-\u003eu.http.method, \u0022PATCH\u0022) ||\n+#endif\n \t\t\t\t!strcmp(h-\u003epolicy-\u003eu.http.method, \u0022POST\u0022))) {\n \n \t\t\twsi-\u003eclient_suppress_CONNECTION_ERROR \u003d 1;\n@@ -1114,6 +1118,7 @@ malformed:\n \t\t\t\t\t\tif (lws_ss_alloc_set_metadata(h, \u0022method\u0022, \u0022POST\u0022, 4))\n \t\t\t\t\t\t\treturn -1;\n \t\t\t\t\t} else {\n+#if defined(LWS_WITH_HTTP_UNCOMMON_HEADERS) || defined(LWS_HTTP_HEADERS_ALL)\n \t\t\t\t\t\tm \u003d lws_hdr_total_length(wsi, WSI_TOKEN_PATCH_URI);\n \t\t\t\t\t\tif (m) {\n \t\t\t\t\t\t\tif (lws_ss_alloc_set_metadata(h, \u0022path\u0022,\n@@ -1123,6 +1128,7 @@ malformed:\n \t\t\t\t\t\t\tif (lws_ss_alloc_set_metadata(h, \u0022method\u0022, \u0022PATCH\u0022, 5))\n \t\t\t\t\t\t\t\treturn -1;\n \t\t\t\t\t\t}\n+#endif\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n","s":{"c":1752655167,"u": 2339}}
],"g": 2901,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}