From 3e33a4d3553c652bd73e9e601de1b21d2dc57bd4 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Mon, 8 Jun 2015 14:29:34 +0200
Subject: [PATCH] Made server variant of HTTP strings a superset of the client
variant again.
---
apps/webserver/http-strings | 3 ++-
apps/webserver/http-strings.c | 6 ++++++
apps/webserver/http-strings.h | 2 ++
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/apps/webserver/http-strings b/apps/webserver/http-strings
index 4178cae2f..07d4eac8c 100644
--- a/apps/webserver/http-strings
+++ b/apps/webserver/http-strings
@@ -1,4 +1,5 @@
http_http "http://"
+http_https "https://"
http_200 "200 "
http_301 "301 "
http_302 "302 "
@@ -32,4 +33,4 @@ http_gif ".gif"
http_jpg ".jpg"
http_text ".text"
http_txt ".txt"
-
+http_redirect "Redirect to "
diff --git a/apps/webserver/http-strings.c b/apps/webserver/http-strings.c
index f1c55e621..40667d24c 100644
--- a/apps/webserver/http-strings.c
+++ b/apps/webserver/http-strings.c
@@ -1,6 +1,9 @@
const char http_http[8] =
/* "http://" */
{0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, };
+const char http_https[9] =
+/* "https://" */
+{0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, };
const char http_200[5] =
/* "200 " */
{0x32, 0x30, 0x30, 0x20, };
@@ -100,3 +103,6 @@ const char http_text[6] =
const char http_txt[5] =
/* ".txt" */
{0x2e, 0x74, 0x78, 0x74, };
+const char http_redirect[19] =
+/* "Redirect to " */
+{0x3c, 0x62, 0x6f, 0x64, 0x79, 0x3e, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x20, 0x74, 0x6f, 0x20, };
diff --git a/apps/webserver/http-strings.h b/apps/webserver/http-strings.h
index 01fc8cd9d..58ae13be8 100644
--- a/apps/webserver/http-strings.h
+++ b/apps/webserver/http-strings.h
@@ -1,4 +1,5 @@
extern const char http_http[8];
+extern const char http_https[9];
extern const char http_200[5];
extern const char http_301[5];
extern const char http_302[5];
@@ -32,3 +33,4 @@ extern const char http_gif[5];
extern const char http_jpg[5];
extern const char http_text[6];
extern const char http_txt[5];
+extern const char http_redirect[19];