Merge remote-tracking branch 'ni/master'
This commit is contained in:
commit
1a9d886148
@ -2,7 +2,7 @@ with import <stockholm/lib>;
|
||||
{ attr, coreutils, exiv2, findutils, gnugrep, jq, nix, utillinux, stdenv }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "htgen-imgur";
|
||||
version = "1.0.0";
|
||||
version = "1.1.0";
|
||||
|
||||
src = ./src;
|
||||
|
||||
|
@ -27,6 +27,7 @@ basic_response() {(
|
||||
}
|
||||
')
|
||||
|
||||
if test "$HTGEN_VERBOSE" = true; then
|
||||
printf "HTTP/1.1 $status_code $status_reason\r\n"
|
||||
printf 'Connection: close\r\n'
|
||||
printf 'Content-Length: %d\r\n' $(expr ${#response_body} + 1)
|
||||
@ -34,6 +35,7 @@ basic_response() {(
|
||||
printf 'Server: %s\r\n' "$Server"
|
||||
printf '\r\n'
|
||||
printf '%s\n' "$response_body"
|
||||
fi
|
||||
|
||||
)}
|
||||
|
||||
@ -78,7 +80,9 @@ case "$Method $path" in
|
||||
trap "rm $content >&2" EXIT
|
||||
|
||||
case ${req_expect-} in 100-continue)
|
||||
if test "$HTGEN_VERBOSE" = true; then
|
||||
printf 'HTTP/1.1 100 Continue\r\n\r\n'
|
||||
fi
|
||||
esac
|
||||
|
||||
head -c $req_content_length > $content
|
||||
|
@ -1,14 +1,14 @@
|
||||
{ coreutils, dash, fetchgit, gnused, stdenv, ucspi-tcp }:
|
||||
with import <stockholm/lib>;
|
||||
let
|
||||
version = "1.2.3";
|
||||
version = "1.2.4";
|
||||
in stdenv.mkDerivation {
|
||||
name = "htgen-${version}";
|
||||
|
||||
src = fetchgit {
|
||||
url = "http://cgit.krebsco.de/htgen";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "0lml336w31ckgspp633ym2jnppzln3f8mvmy3y2vz9yanf59j0hb";
|
||||
sha256 = "1bwb005grrm23h47f0wwairzgk47nygzi8fm82npycyqh86cjljn";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
|
Loading…
Reference in New Issue
Block a user