Introduction
Introduction Statistics Contact Development Disclaimer Help
youtube/feed: whoops add Content-Type text/html for HTML for HTTP CGI - fronten…
Log
Files
Refs
README
LICENSE
---
commit 86e926018b56e1258049055aff09ce1673e14754
parent d22d896072715e337381959c0cca366b45810cb0
Author: Hiltjo Posthuma <[email protected]>
Date: Thu, 18 May 2023 15:31:17 +0200
youtube/feed: whoops add Content-Type text/html for HTML for HTTP CGI
Diffstat:
M youtube/feed.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/youtube/feed.c b/youtube/feed.c
@@ -1158,6 +1158,8 @@ main(int argc, char *argv[])
fputs("Status: 200 OK\r\n", stdout);
if (!strcmp(format, "atom") || !strcmp(format, "xml"))
fputs("Content-Type: text/xml; charset=utf-8\r\n\r\n",…
+ else if (!strcmp(format, "html"))
+ fputs("Content-Type: text/html; charset=utf-8\r\n\r\n"…
else if (!strcmp(format, "json"))
fputs("Content-Type: application/json; charset=utf-8\r…
else
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.