feat(error): add content-type error
This commit is contained in:
@@ -8,6 +8,6 @@ typedef struct mimetype {
|
||||
const char *type;
|
||||
} mimetype;
|
||||
|
||||
int http_get_content_type(const char *location_path, char *content_type);
|
||||
int mime_get_content_type(const char *location_path, char *content_type);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -16,6 +16,7 @@ typedef enum cws_ret {
|
||||
CWS_BIND_ERROR,
|
||||
CWS_LISTEN_ERROR,
|
||||
CWS_WORKER_ERROR,
|
||||
CWS_CONTENT_TYPE_ERROR,
|
||||
CWS_UNKNOWN_ERROR,
|
||||
} cws_return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user