File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 179
179
(is (not (realized? ex)))
180
180
(is (= @resp {:status 200
181
181
:headers {" Content-Type" " application/octet-stream" }
182
- :body " foo" })))))
183
-
184
- (testing " XSS protection enabled"
185
- (let [handler (-> (constantly (response " foo" ))
186
- (wrap-defaults
187
- (-> site-defaults
188
- (assoc-in [:security :xss-protection :enable? ] true )
189
- (assoc-in [:security :xss-protection :mode ] :block ))))
190
- resp (handler (request :get " /" ))]
191
- (is (not (nil? (get-in resp [:headers " X-XSS-Protection" ]))))
192
- (is (= (get-in resp [:headers " X-XSS-Protection" ]) " 1; mode=block" ))))
182
+ :body " foo" }))))
183
+
184
+ (testing " XSS protection enabled"
185
+ (let [handler (-> (constantly (response " foo" ))
186
+ (wrap-defaults
187
+ (-> site-defaults
188
+ (assoc-in [:security :xss-protection :enable? ] true )
189
+ (assoc-in [:security :xss-protection :mode ] :block ))))
190
+ resp (handler (request :get " /" ))]
191
+ (is (not (nil? (get-in resp [:headers " X-XSS-Protection" ]))))
192
+ (is (= (get-in resp [:headers " X-XSS-Protection" ]) " 1; mode=block" ) ))))
You can’t perform that action at this time.
0 commit comments