minor code-style - gopherproxy-c - Gopher HTTP proxy in C (CGI) (HTM) git clone git://git.codemadness.org/gopherproxy-c (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit e21c517078a89ad1023d7ac0c5db8aa5eecab7a9 (DIR) parent 9612b7ed97d46f386db7334b7ef880038a92df8c (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 17 Aug 2018 18:37:32 +0200 minor code-style Diffstat: M gopherproxy.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) --- (DIR) diff --git a/gopherproxy.c b/gopherproxy.c @@ -558,13 +558,12 @@ main(void) /* try to set Content-Type based on extension */ if ((p = strrchr(path, '.'))) { p++; - if (!strcasecmp("png", p)) { + if (!strcasecmp("png", p)) dprintf(1, "Content-Type: image/png\r\n"); - } else if (!strcasecmp("jpg", p) || !strcasecmp("jpeg", p)) { + else if (!strcasecmp("jpg", p) || !strcasecmp("jpeg", p)) dprintf(1, "Content-Type: image/jpeg\r\n"); - } else if (!strcasecmp("gif", p)) { + else if (!strcasecmp("gif", p)) dprintf(1, "Content-Type: image/gif\r\n"); - } } write(1, "\r\n", 2); servefile(u.host, u.port, path);