FEATURE: [Experimental] Content Security Policy (#6514)

do not register new MIME type, parse raw body instead
This commit is contained in:
Kyle Zhao
2018-10-22 13:22:23 -04:00
committed by GitHub
parent ec2613699f
commit e9a971a2b6
10 changed files with 324 additions and 1 deletions

View File

@@ -1,9 +1,14 @@
class FakeLogger
attr_reader :warnings, :errors
attr_reader :warnings, :errors, :infos
def initialize
@warnings = []
@errors = []
@infos = []
end
def info(message = nil)
@infos << message
end
def warn(message)