annotate docs/xsls/dump.xsls @ 5324:8ef1722143dc

SPDY: do not reject headers with empty value (ticket #396). A quote from SPDY draft 2 specification: "The length of each name and value must be greater than zero. A receiver of a zero-length name or value must send a RST_STREAM with code PROTOCOL error." But it appears that Chrome browser allows sending requests over SPDY/2 connection using JavaScript that contain headers with empty values. For better compatibility across SPDY clients and to be compliant with HTTP, such headers are no longer rejected. Also, it is worth noting that in SPDY draft 3 the statement has been changed so that it permits empty values for headers.
author Valentin Bartenev <vbart@nginx.com>
date Thu, 15 Aug 2013 19:16:09 +0400
parents 2c863b4a8f93
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4830
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
1 X:stylesheet {
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
2
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
3 X:output method="xml"
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
4 X:param indent-increment="' '";
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
5
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
6 X:template noname(indent="'&#xA;'") = "*" {
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
7 !{$indent}
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
8
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
9 X:if "name()='xsl:template'" {
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
10 !{$indent}
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
11 }
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
12
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
13 X:copy {
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
14 X:copy-of "@*"
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
15 !!( indent = "concat($indent, $indent-increment)" );
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
16 X:if "./* " { !{$indent} }
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
17 }
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
18 }
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
19
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
20
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
21 X:template = "comment()|processing-instruction()" {
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
22 X:copy;
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
23 }
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
24
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
25 <!--
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
26 X:template ="text()[normalize-space(.)='']" {}
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
27 -->
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
28
2c863b4a8f93 Converted DOS-style newlines.
Ruslan Ermilov <ru@nginx.com>
parents: 450
diff changeset
29 }