6b7fa819 | 01-Feb-2025 |
Patrick Williams <patrick@stwcx.xyz> |
meson: reformat with meson formatter
Apply the `meson format` results.
Change-Id: I147ee758f6fca48cdd18889f7f018c76dcca39b3 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> |
8419820f | 12-Apr-2023 |
Patrick Williams <patrick@stwcx.xyz> |
meson: remove deprecated get_pkgconfig_variable
Since meson 0.56, the `get_pkgconfig_variable` has been deprecated. In meson 0.58 the `get_variable` was enhanced to no longer require the `pkgconfig
meson: remove deprecated get_pkgconfig_variable
Since meson 0.56, the `get_pkgconfig_variable` has been deprecated. In meson 0.58 the `get_variable` was enhanced to no longer require the `pkgconfig` keyword argument. Ensure meson 0.58 is required and update the usage of all `get_pkgconfig_variable` and `get_variable` to be the modern variant.
Change-Id: I0aa20f956a896d11ba062f3df4a947f9e68dfb53 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
272b453c | 04-Dec-2022 |
Patrick Williams <patrick@stwcx.xyz> |
shellcheck: fix issues and format with beautysh
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib06266cbe243a3e70a4c468c0d4d2c4d2b1f1914 |
aeacd252 | 05-Aug-2020 |
Adriana Kobylak <anoo@us.ibm.com> |
http-redirect: Simplify installing service files
The output file name for the service files was unintentionally different than the input file name. By installing the service files in a loop, it gets
http-redirect: Simplify installing service files
The output file name for the service files was unintentionally different than the input file name. By installing the service files in a loop, it gets rid of duplicate code and allows the use of a variable for the input and output field, fixing the typo.
If a variable was not used, output could be set to @PLAINNAME@ to use the same name as input.
Change-Id: Ic0cef9a21227bbd712a0214c6e78814ba27860ab Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
756eaf79 | 06-Apr-2020 |
Milton Miller <miltonm@us.ibm.com> |
http-redirect: semi-exhaustive good and some bad paths
Generate all encodings of http scheme and all combinations of port attached to host, with and without explicit path. Verify host from URI is u
http-redirect: semi-exhaustive good and some bad paths
Generate all encodings of http scheme and all combinations of port attached to host, with and without explicit path. Verify host from URI is used instead of host from Host: header.
Generate all combinations of host and port in host header with absolute path of /. Verify https url is returned.
Test at least once occurrance of each bad status code. A few more should be added.
Change-Id: If31724d8e3ab557943b9acd0c8d5ef682027407d Signed-off-by: Milton Miller <miltonm@us.ibm.com>
show more ...
|
10aac14e | 03-Apr-2020 |
Milton Miller <miltonm@us.ibm.com> |
http-redirect: add meson build
Install the minimal http-redirection awk script. Also, install systemd socket and service files.
Change-Id: I44e6365a8a48f82e62f9f348c91b165cf3b5ce1e Signed-off-by: M
http-redirect: add meson build
Install the minimal http-redirection awk script. Also, install systemd socket and service files.
Change-Id: I44e6365a8a48f82e62f9f348c91b165cf3b5ce1e Signed-off-by: Milton Miller <miltonm@us.ibm.com>
show more ...
|
4ee8f2c5 | 09-Jan-2020 |
Milton Miller <miltonm@us.ibm.com> |
http-redirect: Minimal awk script to redirect http to https
A simple script written in awk to parse HTTP/1.1 requests and then generate a reply to use the https:// URL.
Only support GET and HEAD me
http-redirect: Minimal awk script to redirect http to https
A simple script written in awk to parse HTTP/1.1 requests and then generate a reply to use the https:// URL.
Only support GET and HEAD methods; others will get Not Implemented.
Recognises multi-line headers, repeated headers, and absolute URI (where the host is in the URI and the Host: header is ignored). Supports host headers that include a port for non-standard redirect. Decodes %xx url encoding before path lookup.
Includes systemd socket and service files. Includes unit tests.
Includes trace subroutine that writes trace to a file if tracefile variable set (either awk -v or additional awk -f segment).
Includes add-url.awk that adds url {request, destination} pairs read from a file agumenting the valid URI array.
Prior version testing: Tested on withspoon with awk script in /home/root/redirect.awk * ran Unit tests script * systemd units installed in /run/systemd/system/ * curl -w %{redirect_url}'\n' http://hostname.example/
Tests: test cases in ./tests show location is parsed. with mawk 1.3.3 nc -l -p 8080 < fifo | awk -f redirect.awk -Wi > fifo firefox http://localhost:8080 with gawk 4.0.1 nc -l -p 8080 -c "awk -f http-redirect.awk" & curl -v -k -L http://localhost:8080/ curl -v -I -k -L http://localhost:8080/
Change-Id: Ic361247dedfd7bcff620d793dd7082c247c9e78e Signed-off-by: Milton Miller <miltonm@us.ibm.com>
show more ...
|