You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the code before it (while trying to serve a file), had already set some headers before it failed for some reason, then the headers get cleared. This makes sense to me.
Though I agree that the mixing of file handling and callbacks is not very clean, can could be improved upon, which would also fix your concern.
code in handler.lua:
if self.callback then
response:statusCode(200)
response.headers = {} -- response._headers = {} ???????????????????????????
response:addHeader('Content-Type', 'text/html')
end
The text was updated successfully, but these errors were encountered: