Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1752654687, "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":"001e72dc74446248b2c3517e5cdecbee", "commit": {"type":"commit", "time": 1553251928, "time_ofs": 480, "oid_tree": { "oid": "1e9927bafcf72ef4f9ab5fc3b08c7ebb2ccb0960", "alias": []}, "oid":{ "oid": "5c3a2be00db30f1158386e1f12adeb44af4450c0", "alias": []}, "msg": "http proxy: proxy Authorization header", "sig_commit": { "git_time": { "time": 1553251928, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }, "sig_author": { "git_time": { "time": 1553251928, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }}, "body": "http proxy: proxy Authorization header\n\nSai notifications are signed using Authorization: and \u0022sai\u0022 auth type.\n\nAfter the auth type, the format is, eg, \u0022sha256\u003d\u003chash\u003e\u0022 ." , "diff": "diff --git a/lib/roles/http/client/client.c b/lib/roles/http/client/client.c\nindex 4ad69cc..414972e 100644\n--- a/lib/roles/http/client/client.c\n+++ b/lib/roles/http/client/client.c\n@@ -1104,6 +1104,11 @@ lws_generate_client_handshake(struct lws *wsi, char *pkt)\n \t\t\twsi-\u003eclient_http_body_pending \u003d 1;\n \t}\n \tif (wsi-\u003eparent \u0026\u0026\n+\t lws_hdr_total_length(wsi-\u003eparent, WSI_TOKEN_HTTP_AUTHORIZATION)) {\n+\t\tp +\u003d snprintf(p, 128, \u0022Authorization: %s\u005cx0d\u005cx0a\u0022,\n+\t\t\tlws_hdr_simple_ptr(wsi-\u003eparent, WSI_TOKEN_HTTP_AUTHORIZATION));\n+\t}\n+\tif (wsi-\u003eparent \u0026\u0026\n \t lws_hdr_total_length(wsi-\u003eparent, WSI_TOKEN_HTTP_CONTENT_TYPE)) {\n \t\tp +\u003d snprintf(p, 128, \u0022Content-Type: %s\u005cx0d\u005cx0a\u0022,\n \t\t\tlws_hdr_simple_ptr(wsi-\u003eparent, WSI_TOKEN_HTTP_CONTENT_TYPE));\n@@ -1131,6 +1136,8 @@ lws_generate_client_handshake(struct lws *wsi, char *pkt)\n \n \tp +\u003d snprintf(p, 4, \u0022\u005cx0d\u005cx0a\u0022);\n \n+\t// puts(pkt);\n+\n \treturn p;\n }\n \n","s":{"c":1752654687,"u": 2089}} ],"g": 2652,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}