Commit graph

279 commits

Author SHA1 Message Date
famfo
317c827a1d Set content type for listing 2024-08-02 21:16:33 +02:00
famfo
9adc827018 Set content type for 403 and 404 pages 2024-08-02 21:16:33 +02:00
famfo
cb2acacc32 Set content type when running in buffered mode 2024-08-02 21:16:33 +02:00
Linus Groh
640baa8e7b docker: bump to alpine:3.20 2024-07-31 20:03:04 +02:00
sdomi
eb80d42711 server: fix slight parameter decode mangling 2024-07-30 16:48:30 +02:00
sdomi
0dbd85f9ec server: better handle custom statuses, fix some string escapes 2024-07-26 23:11:49 +02:00
sdomi
7a6e6c2f38 server: fix "typo" 2024-07-26 20:56:23 +02:00
sdomi
b0f23c01e5 notORM: fix typo 2024-07-26 20:52:52 +02:00
sdomi
ee1a540120 server: remove some of the parsing crimes 2024-07-26 20:52:42 +02:00
sdomi
2c1dfa20f1 meta: version bump, since i'm breaking compat anyways 2024-07-26 03:24:14 +02:00
sdomi
bb8526a752 account: migrate to notORM for data storage 2024-07-26 03:20:50 +02:00
sdomi
1df5fb17ca notORM: new generic data I/O interface, currently backed by CSV-esque files 2024-07-26 03:20:34 +02:00
sdomi
efbeca0498 template: normalize IFS 2024-07-24 03:01:43 +02:00
sdomi
00f9432b29 misc: fix decoding spaces in url_decode (oops?) 2024-07-19 23:11:27 +02:00
sdomi
ac89f028d0 template: fix misrenders due to unsorted key array 2024-07-19 22:24:51 +02:00
sdomi
ccc1ce3273 account: typo fix + minor flow changes 2024-07-19 18:03:27 +02:00
sdomi
1059fcf177 template: fix edge case with newline splitting sed arguments 2024-07-19 17:36:41 +02:00
sdomi
b28e1d9fcd account: fix poor checking that could lead to privilege escalation 2024-07-19 17:23:10 +02:00
famfo
61fea4b849
Add option to show call trace, basic cli docs 2024-07-19 02:25:33 +02:00
sdomi
f5eebc109d account: added argon2id as a preferred (default) password hash 2024-07-19 00:58:13 +02:00
sdomi
4e6c5c0ba3 template: tpl includes with {{#PATH}} 2024-07-17 22:09:01 +02:00
Linus Groh
a65b600952 Don't run ncat within background loop in the background too 2024-06-07 13:39:44 +02:00
Linus Groh
10342035a4 Match headers on beginning of line 2024-05-19 19:52:10 +01:00
Linus Groh
c459a405b2 Ignore query when parsing URL params 2024-05-19 16:21:40 +01:00
sdomi
231b52f171 * fix router parameter clobbering
if a route contained a static string with the same name as one
of the named params, said string would overwrite the payload from
the previous named param. this commit adds a check for `:` in the
template to prevent this
2024-04-21 21:54:06 +02:00
sdomi
a94d7b7c24 * fixes of some ugly sed hacks from 4 years ago 2024-04-21 19:27:23 +02:00
Dominique Liberda
60db12abe1 server: temporarily revert the previous patch ,_, 2023-04-28 11:34:42 +02:00
Dominique Liberda
db8491d7a5 server: post_multipart needs to be enabled manually now 2023-04-28 10:16:41 +02:00
Dominique Liberda
91e20ceaae template: (hopefully) fix weird backslash escape behavior + hopefully a bit better perf 2023-04-21 22:59:09 +02:00
Dominique Liberda
7f1838372a * fix regression due to sed's imporper regexp handling 2023-01-18 06:24:10 +01:00
Dominique Liberda
4ce52292aa + else statement in conditional templates 2023-01-18 05:09:33 +01:00
Dominique Liberda
e2dbc9e4bd * template nesting, fixes 2022-11-29 11:06:45 -05:00
Dominique Liberda
0c32e2fe00 * new template functions 2022-11-29 06:46:50 -05:00
Dominika Liberda
c4d1de8015 Merge branch 'better_templates' into 'master'
Better templates

See merge request laudom/http.sh!3
2022-06-28 07:25:36 +00:00
Dominika Liberda
1a7805fccb * satanize 2022-06-28 09:34:04 +02:00
Dominika Liberda
fcd102f113 * oops, fixes global replace 2022-06-25 12:02:45 +02:00
Dominika Liberda
e1f8ded023 why not, let's bump to 0.95 2022-06-25 11:35:03 +02:00
Dominika Liberda
f3ff522d82 * template replace now global except for foreach 2022-06-25 11:32:20 +02:00
Dominika Liberda
b7945227ea * fix ampersand expansion 2022-06-25 11:03:39 +02:00
Dominika Liberda
828bc8e426 * proper multiline 2022-06-25 09:23:16 +02:00
Dominika Liberda
a954f330ab + poor man's array copy 2022-06-25 09:00:25 +02:00
Dominika Liberda
c607722e2b * stuff working 2022-06-21 04:00:17 +02:00
Dominika Liberda
18083f0cf3 * broken, i'll squish this anyways 2022-06-20 04:56:54 +02:00
Dominika Liberda
5851ccc104 * a bit cleaner debug mode 2022-06-19 20:45:29 +02:00
Dominika
5a37f921c9 * fix in above, ncat is bork 2022-01-15 21:36:49 +01:00
Dominika
903b94e6e5 * ncat now timeouts after 10min of no i/o 2022-01-15 20:27:53 +01:00
Dominika
a69e756a93 * fix an awful bug, eww how did this get here 2022-01-11 18:41:11 +01:00
Dominika
5be51165e2 * now 302s properly (WiP?) 2021-12-19 03:36:00 +01:00
Dominika
0793241a3b + docker-compose and other goodies 2021-11-10 23:57:47 +01:00
bad
52c09d888e Switch to using #!/usr/bin/env bash
This fixes http.sh on nixos, macos and probably a few other systems
2021-09-22 14:52:03 +02:00