summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/kpaste/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2023-05-16 19:32:49 +0200
committertv <tv@krebsco.de>2023-05-16 19:32:49 +0200
commit56cff01ac49351e4a80a6003e96393922026f0ad (patch)
tree94c85c4e59028a3b41ff83c2fad05782bae551e0 /krebs/5pkgs/simple/kpaste/default.nix
parente3c8492f30a2c73acfb43478d8ceb8c38d7fa777 (diff)
parentdf09f8293f326235d417ec750edf05298ba468de (diff)
Merge remote-tracking branch 'orange/master'
Diffstat (limited to 'krebs/5pkgs/simple/kpaste/default.nix')
-rw-r--r--krebs/5pkgs/simple/kpaste/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/krebs/5pkgs/simple/kpaste/default.nix b/krebs/5pkgs/simple/kpaste/default.nix
index 9820c931d..de2de4721 100644
--- a/krebs/5pkgs/simple/kpaste/default.nix
+++ b/krebs/5pkgs/simple/kpaste/default.nix
@@ -1,6 +1,7 @@
{ curl, gnused, writeDashBin }:
writeDashBin "kpaste" ''
- ${curl}/bin/curl -sS http://p.r --data-binary @"''${1:--}" |
+ ${curl}/bin/curl -sS http://p.r --data-binary @"''${1:--}" \
+ -H "Content-Type-Override: ''${KPASTE_CONTENT_TYPE-}" |
${gnused}/bin/sed '$ {p;s|http://p.r|https://p.krebsco.de|}'
''