onion
onion copied to clipboard
C library to create simple HTTP servers and Web Applications.
Hi! I've run Cppcheck for static code analysis on the `master` branch of this project. I've found the following 3 code snippets which may contain either a redundant check or...
Hello, For what documentation i have saw, i should be able to connect to oterm, in the chosen tcp port with my local account credentials. However, i cannot get access....
Wiki pages' editing access is public. Any spammer may destroy the pages resulting in a chaos in the library wiki So it is requested to restrict the edit access
i send date by curl,but can't get any data i trace it, the dict's key was data,not content-type,is it bug? debug info: onion_dict_find_node (d=0x615df0, current=0x62a220, key=0x400e58 "application", parent=0x0) at */onion-master/src/onion/dict.c:231...
This is a proposal to fix #254 . It just converts the storage for the date header into a fixed array. So, valgrind does not complain about the non-freed array...
Hello Mr. Moreno, I've spotted a problem with 'onion_websocket_write'. This function will used it's argument 'va_list args' twice, but the pointer in the second call will be wrong. I've found...
In commit 2b3b230b79ecae119b7eb847f2 the `fileserver.c` example has unsafe code about signal (near [line 154](https://github.com/davidmoreno/onion/blob/master/examples/fileserver/fileserver.c#L154), calling [signal(2)](https://man7.org/linux/man-pages/man2/signal.2.html) ...) Read both [signal(7)](https://man7.org/linux/man-pages/man7/signal.7.html) and [signal-safety(7)](https://man7.org/linux/man-pages/man7/signal-safety.7.html). We might take inspiration from [Qt5 Unix signal...
in: https://github.com/davidmoreno/onion/blob/master/src/onion/websocket.c#L207 `` header[3 + 8 - i] = tlen & 0x0FF; `` I am pretty sure the 3 should be a 1: `` header[1 + 8 - i] =...
I try to work with websockets but found that if one websocket is opened, I can't open another (in another tab, another browser or any other PC). How can I...