Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Commit

Permalink
move http_extension_to_mimetype to baresip
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh committed Aug 6, 2022
1 parent aac2ba8 commit 10bb7b5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/demo.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

int http_reply_descr(struct http_conn *conn, const char *sessid,
enum sdp_type type, struct mbuf *mb_sdp);
const char *http_extension_to_mimetype(const char *ext);


/*
Expand Down
9 changes: 0 additions & 9 deletions src/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,3 @@ int http_reply_descr(struct http_conn *conn, const char *sessid,

return err;
}


const char *http_extension_to_mimetype(const char *ext)
{
if (0 == str_casecmp(ext, "html")) return "text/html";
if (0 == str_casecmp(ext, "js")) return "text/javascript";

return "application/octet-stream"; /* default */
}

0 comments on commit 10bb7b5

Please sign in to comment.