Commit Graph

105 Commits (master)

Author SHA1 Message Date
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
Lauren Liberda f0ccf5d8ef fix secret .gitignore 2021-09-09 18:35:45 +02:00
Lauren Liberda cc5d052716 dockerfile update 2021-09-09 18:35:37 +02:00
Dominika Liberda 7846f5a271 * fix for using busybox's mktemp 2021-08-18 11:31:17 +00:00
Dominika Liberda 2639361804 * another router fix, for real this time 2021-08-02 22:37:27 +00:00
Dominika Liberda 4e49582099 * another router fix... 2021-08-03 00:29:41 +02:00
Dominika Liberda 4845da7909 * another fix in router 2021-08-03 00:17:48 +02:00
Dominika Liberda d80ae05bfe * fix bad behaviour on routing / 2021-08-01 22:42:57 +02:00
Dominika Liberda 67921ebab8 * fix POST data not being read when using router 2021-08-01 19:20:36 +02:00
Dominika Liberda 61bd6b72fe * fix XML mimetype 2021-07-26 23:05:41 +02:00
Lauren Liberda a9a2d8da25 head: html escape meta tag contents 2021-06-24 01:01:13 +02:00
Lauren Liberda 911eca714c html_encode: support for data from stdin 2021-06-23 00:40:35 +02:00
Lauren Liberda c73b8910d0 allow putting unsafe things in the head template 2021-06-09 01:53:46 +02:00
Dominika Liberda d249f225ba * even better sanitization in proxy 2021-06-02 00:22:42 +02:00
Dominika Liberda 988e290eed * proxy redirects are partly urlencoded now 2021-06-01 23:56:11 +02:00
Dominika Liberda 1ff1d08852 * fixed (?) proxying redirects 2021-06-01 23:48:02 +02:00
Dominika Liberda 4ce0667870 * proxying now uses curl instead of ncat 2021-06-01 22:09:44 +02:00
Dominika Liberda 46e77541cf + new proxying system 2021-06-01 21:14:03 +02:00
Dominika Liberda a7acb3ee6e + better 'Hello World' after ./http.sh init 2021-06-01 18:36:21 +02:00
Dominika Liberda 3270b2bf26 * bugfix in last bugfix 2021-06-01 02:19:26 +02:00
Dominika Liberda b92dc47b38 * fixes problems with %3F in GET query 2021-06-01 00:52:43 +02:00
Dominika Liberda 1bc1fc3127 * updated inlined config 2021-06-01 00:43:07 +02:00
Dominika Liberda 13819791ab * fixed mail for picky SMTP servers 2021-05-20 20:23:33 +02:00
Dominika Liberda ad7ce7d222 * fix in header handling 2021-05-17 17:26:22 +02:00
Dominika Liberda 9ea79c084b * added socat-only operation mode 2021-05-16 11:10:39 +02:00