Add a charset to cors Content-Type header

This commit is contained in:
Théophile Diot 2023-06-06 10:42:55 -04:00
parent e01c14f11f
commit 85a53278e1
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ function cors:header()
ngx.header[header] = self.variables[variable]
end
end
ngx.header["Content-Type"] = "text/html"
ngx.header["Content-Type"] = "text/html; charset=UTF-8"
ngx.header["Content-Length"] = "0"
return self:ret(true, "edited headers for preflight request")
end