Merge branch 'master' into signer-ui

This commit is contained in:
Tomasz Drwięga
2016-06-02 17:14:15 +02:00
7 changed files with 10 additions and 8 deletions

View File

@@ -48,6 +48,9 @@ impl ws::Handler for Session {
headers.push(("Connection".into(), b"Closed".to_vec()));
headers.push(("Content-Length".into(), content_len.as_bytes().to_vec()));
headers.push(("Content-Type".into(), f.mime.as_bytes().to_vec()));
if !f.safe_to_embed {
headers.push(("X-Frame-Options".into(), b"SAMEORIGIN".to_vec()));
}
}
Ok(res)
})