File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4956,10 +4956,11 @@ static int LuaProgramTokenBucket(lua_State *L) {
4956
4956
}
4957
4957
4958
4958
static const char * GetContentTypeExt (const char * path , size_t n ) {
4959
- const char * r , * e ;
4959
+ const char * r = NULL , * e ;
4960
+ if ((r = FindContentType (path , n ))) return r ;
4961
+ #ifndef STATIC
4960
4962
int top ;
4961
4963
lua_State * L = GL ;
4962
- if ((r = FindContentType (path , n ))) return r ;
4963
4964
4964
4965
// extract the last .; use the entire path if none is present
4965
4966
if ((e = memrchr (path , '.' , n ))) {
@@ -4974,6 +4975,7 @@ static const char *GetContentTypeExt(const char *path, size_t n) {
4974
4975
if (lua_gettable (L , -2 ) == LUA_TSTRING )
4975
4976
r = FreeLater (strdup (lua_tostring (L , -1 )));
4976
4977
lua_settop (L , top );
4978
+ #endif
4977
4979
return r ;
4978
4980
}
4979
4981
You can’t perform that action at this time.
0 commit comments