Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1711696165, "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":"c866d52df874bda5de95773f0dfbb210", "commit": {"type":"commit", "time": 1525681678, "time_ofs": 480, "oid_tree": { "oid": "ad0d5b7275b28b43cafe472661e61e40dbd4d059", "alias": []}, "oid":{ "oid": "d78f3a25dd62344910f7e623d66e1d1d4e468d05", "alias": []}, "msg": "minimal-http-server-form-get: fix redirect api usage", "sig_commit": { "git_time": { "time": 1525681678, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }, "sig_author": { "git_time": { "time": 1525681678, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }}, "body": "minimal-http-server-form-get: fix redirect api usage" , "diff": "diff --git a/minimal-examples/http-server/minimal-http-server-form-get/minimal-http-server-form-get.c b/minimal-examples/http-server/minimal-http-server-form-get/minimal-http-server-form-get.c\nindex 4a5a4a4..54f0f11 100644\n--- a/minimal-examples/http-server/minimal-http-server-form-get/minimal-http-server-form-get.c\n+++ b/minimal-examples/http-server/minimal-http-server-form-get/minimal-http-server-form-get.c\n@@ -60,20 +60,8 @@ callback_http(struct lws *wsi, enum lws_callback_reasons reason, void *user,\n \n \t\tif (lws_http_redirect(wsi, HTTP_STATUS_MOVED_PERMANENTLY,\n \t\t\t\t (unsigned char *)\u0022after-form1.html\u0022,\n-\t\t\t\t 16, \u0026p, end))\n+\t\t\t\t 16, \u0026p, end) \u003c 0)\n \t\t\treturn -1;\n-\n-\t\t/* we could add more headers here */\n-\n-\t\tif (lws_finalize_http_header(wsi, \u0026p, end))\n-\t\t\treturn -1;\n-\n-\t\tn \u003d lws_write(wsi, start, lws_ptr_diff(p, start),\n-\t\t\t LWS_WRITE_HTTP_HEADERS |\n-\t\t\t LWS_WRITE_H2_STREAM_END);\n-\t\tif (n \u003c 0)\n-\t\t\treturn -1;\n-\n \t\tbreak;\n \n \tdefault:\n","s":{"c":1711696165,"u": 804}} ],"g": 1297,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}