Introduction
Introduction Statistics Contact Development Disclaimer Help
minor code-style - gopherproxy-c - Gopher HTTP proxy in C (CGI)
git clone git://git.codemadness.org/gopherproxy-c
Log
Files
Refs
README
LICENSE
---
commit e21c517078a89ad1023d7ac0c5db8aa5eecab7a9
parent 9612b7ed97d46f386db7334b7ef880038a92df8c
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 17 Aug 2018 18:37:32 +0200
minor code-style
Diffstat:
M gopherproxy.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
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\…
- } else if (!strcasecmp("jpg", p) || !strcasecm…
+ else if (!strcasecmp("jpg", p) || !strcasecmp(…
dprintf(1, "Content-Type: image/jpeg\r…
- } else if (!strcasecmp("gif", p)) {
+ else if (!strcasecmp("gif", p))
dprintf(1, "Content-Type: image/gif\r\…
- }
}
write(1, "\r\n", 2);
servefile(u.host, u.port, path);
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.