dot

packages and services management
Log | Files | Refs | README

commit befcc81e4c72a70fc88fec570d17e8be6edf9d10
parent 8bc78b76ba08fb452192611d975b6fef0ff0f684
Author: Josuah Demangeon <mail@josuah.net>
Date:   Fri, 16 Feb 2018 11:47:17 +0100

gproxy: let the browser determine the type

Diffstat:
Mbin/ghttpd | 3+--
Mbin/gproxy | 5++---
2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/bin/ghttpd b/bin/ghttpd @@ -79,8 +79,7 @@ END { print("\r"); system(cmd); - } else if (flag == "I" || flag = "g") { - print("Content-Type: image"); + } else { print("\r"); system(cmd); } diff --git a/bin/gproxy b/bin/gproxy @@ -39,7 +39,7 @@ BEGIN { sub("^/", "", flag); sub("/.*", "", flag); } else { - flag = "."; + flag = "1"; } path = $0; @@ -100,8 +100,7 @@ END { print("\r"); system(cmd); - } else if (flag == "I" || flag = "g") { - print("Content-Type: image"); + } else { print("\r"); system(cmd); }