Show More
@@ -54,6 +54,12 static page should send CSP when enabled | |||||
54 | 200 Script output follows |
|
54 | 200 Script output follows | |
55 | content-security-policy: script-src https://example.com/ 'unsafe-inline' |
|
55 | content-security-policy: script-src https://example.com/ 'unsafe-inline' | |
56 |
|
56 | |||
|
57 | $ get-with-headers.py --twice --headeronly localhost:$HGPORT repo1/static/style.css content-security-policy | |||
|
58 | 200 Script output follows | |||
|
59 | content-security-policy: script-src https://example.com/ 'unsafe-inline' | |||
|
60 | 500 Internal Server Error | |||
|
61 | [1] | |||
|
62 | ||||
57 | repo page should send CSP by default, include etag w/o nonce |
|
63 | repo page should send CSP by default, include etag w/o nonce | |
58 |
|
64 | |||
59 | $ get-with-headers.py --headeronly localhost:$HGPORT repo1 content-security-policy etag |
|
65 | $ get-with-headers.py --headeronly localhost:$HGPORT repo1 content-security-policy etag |
@@ -875,4 +875,25 Uncaught exception after partial content | |||||
875 | Internal Server Error (no-eol) |
|
875 | Internal Server Error (no-eol) | |
876 |
|
876 | |||
877 | $ killdaemons.py |
|
877 | $ killdaemons.py | |
|
878 | ||||
|
879 | HTTP 304 works with hgwebdir (issue5844) | |||
|
880 | ||||
|
881 | $ cat > hgweb.conf << EOF | |||
|
882 | > [paths] | |||
|
883 | > /repo = $TESTTMP/test | |||
|
884 | > EOF | |||
|
885 | ||||
|
886 | $ hg serve --web-conf hgweb.conf -p $HGPORT -d --pid-file hg.pid -E error.log | |||
|
887 | $ cat hg.pid >> $DAEMON_PIDS | |||
|
888 | ||||
|
889 | $ get-with-headers.py --twice --headeronly localhost:$HGPORT 'repo/static/style.css' - date etag server | |||
|
890 | 200 Script output follows | |||
|
891 | content-length: 2677 | |||
|
892 | content-type: text/css | |||
|
893 | 500 Internal Server Error | |||
|
894 | transfer-encoding: chunked | |||
|
895 | [1] | |||
|
896 | ||||
|
897 | $ killdaemons.py | |||
|
898 | ||||
878 | $ cd .. |
|
899 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now