feat(error): add content-type error

This commit is contained in:
2025-12-02 01:48:14 +01:00
parent 115109efb9
commit 0af66d3aa4
4 changed files with 9 additions and 5 deletions

View File

@@ -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

View File

@@ -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;