File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @athenna/http" ,
3- "version" : " 5.17 .0" ,
3+ "version" : " 5.18 .0" ,
44 "description" : " The Athenna Http server. Built on top of fastify." ,
55 "license" : " MIT" ,
66 "author" :
" João Lenon <[email protected] >" ,
Original file line number Diff line number Diff line change @@ -122,12 +122,9 @@ export class Response {
122122 . share ( { request : this . request } )
123123 . render ( view , data )
124124
125- await this . header (
126- 'Content-Security-Policy' ,
127- "default-src 'self' 'unsafe-inline' 'unsafe-eval' 'img-src' 'style-src-elem' 'script-src-elem'"
125+ await this . safeHeader ( 'Content-Type' , 'text/html; charset=utf-8' ) . send (
126+ content
128127 )
129- . safeHeader ( 'Content-Type' , 'text/html; charset=utf-8' )
130- . send ( content )
131128
132129 this . response . body = content
133130
You can’t perform that action at this time.
0 commit comments