aboutsummaryrefslogtreecommitdiff
path: root/src/response.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/response.c')
-rw-r--r--src/response.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/response.c b/src/response.c
index e4cd342..fdeba34 100644
--- a/src/response.c
+++ b/src/response.c
@@ -1,6 +1,6 @@
#include "response.h"
-#include "utils.h"
+#include "inner_tools.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
@@ -23,6 +23,7 @@ void magi_response_setup(magi_response *response)
void magi_response_content_type(magi_response *response, const char *type)
{
+<<<<<<< HEAD
static const char *const ct = "Content-Type: ";
static const int ctlen = 15;
const int len = strlen(type);
@@ -30,6 +31,15 @@ void magi_response_content_type(magi_response *response, const char *type)
response->content_type = malloc(ctlen + len + 1);
memcpy(response->content_type, ct, ctlen);
memcpy(response->content_type + ctlen, type, len + 1);
+=======
+ const char * const messages[] = {
+ "Content-Type: application/xhtml+xml", /* magi_xhtml */
+ };
+ if (!response->content_type) {
+ response->content_type = magi_str_create_copy(messages[type],
+ strlen(messages[type]));
+ }
+>>>>>>> master
}
void magi_response_add(magi_response *r, const char *addon)