summaryrefslogtreecommitdiff
path: root/main/SAPI.h
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2000-02-24 22:00:47 +0000
committerStig Bakken <ssb@php.net>2000-02-24 22:00:47 +0000
commitba03c9f2aa50149197753743c490c1de4f0364f2 (patch)
tree4599adec809b6321e9a53c44c5b431e123f1472b /main/SAPI.h
parentb51805caeb1f0c1831972fc6d495de9d8b5f2b49 (diff)
downloadphp-git-ba03c9f2aa50149197753743c490c1de4f0364f2.tar.gz
started implementing directives for default mimetype/charset
Diffstat (limited to 'main/SAPI.h')
-rw-r--r--main/SAPI.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/main/SAPI.h b/main/SAPI.h
index b357b6f791..8cb83a38f1 100644
--- a/main/SAPI.h
+++ b/main/SAPI.h
@@ -47,6 +47,8 @@ typedef struct {
typedef struct {
zend_llist headers;
int http_response_code;
+ char *default_content_type;
+ size_t default_content_type_size;
unsigned char send_default_content_type;
char *http_status_line;
} sapi_headers_struct;
@@ -190,7 +192,10 @@ struct _sapi_post_entry {
#define SAPI_HEADER_DO_SEND 2
#define SAPI_HEADER_SEND_FAILED 3
-#define SAPI_DEFAULT_CONTENT_TYPE "Content-Type: text/html"
+#define SAPI_DEFAULT_MIMETYPE "text/html"
+#define SAPI_DEFAULT_CHARSET "iso-8859-1"
+#define SAPI_DEFAULT_CONTENT_TYPE SAPI_DEFAULT_MIMETYPE ";charset=" SAPI_DEFAULT_CHARSET
+#define SAPI_DEFAULT_CONTENT_TYPE_HEADER "Content-type: " SAPI_DEFAULT_CONTENT_TYPE
#define SAPI_PHP_VERSION_HEADER "X-Powered-By: PHP/" PHP_VERSION
#define SAPI_POST_READER_FUNC(post_reader) void post_reader(SLS_D)
@@ -201,3 +206,10 @@ SAPI_POST_READER_FUNC(sapi_read_standard_form_data);
#define STANDARD_SAPI_MODULE_PROPERTIES NULL
#endif /* _NEW_SAPI_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ */