-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(http) avoid recursive sublanguage and tighten rules (#2893)
* tweaks, add response markup test * do not trigger autodetect * unless we are sure it is HTTP * more specific rules * add illegal to child modes
- Loading branch information
1 parent
0f5f591
commit a56d416
Showing
5 changed files
with
87 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<span class="hljs-keyword">POST</span> <span class="hljs-string">/task?id=1</span> HTTP/1.1 | ||
<span class="hljs-attribute">Host</span>: example.org | ||
<span class="hljs-attribute">Content-Type</span>: application/json; charset=utf-8 | ||
<span class="hljs-attribute">Content-Length</span>: 19 | ||
<span class="hljs-keyword">POST</span> <span class="hljs-string">/task?id=1</span> <span class="hljs-meta">HTTP/1.1</span> | ||
<span class="hljs-attribute">Host</span><span class="hljs-punctuation">: </span>example.org | ||
<span class="hljs-attribute">Content-Type</span><span class="hljs-punctuation">: </span>application/json; charset=utf-8 | ||
<span class="hljs-attribute">Content-Length</span><span class="hljs-punctuation">: </span>19 | ||
|
||
<span class="json">{<span class="hljs-attr">"status"</span>: <span class="hljs-string">"ok"</span>, <span class="hljs-attr">"extended"</span>: <span class="hljs-literal">true</span>} | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<span class="hljs-meta">HTTP/2</span> <span class="hljs-number">301</span> | ||
<span class="hljs-attribute">location</span><span class="hljs-punctuation">: </span>https://www.google.com/ | ||
<span class="hljs-attribute">content-type</span><span class="hljs-punctuation">: </span>text/html; charset=UTF-8 | ||
<span class="hljs-attribute">date</span><span class="hljs-punctuation">: </span>Sat, 31 Oct 2020 22:47:14 GMT | ||
<span class="hljs-attribute">expires</span><span class="hljs-punctuation">: </span>Mon, 30 Nov 2020 22:47:14 GMT | ||
<span class="hljs-attribute">cache-control</span><span class="hljs-punctuation">: </span>public, max-age=2592000 | ||
<span class="hljs-attribute">server</span><span class="hljs-punctuation">: </span>gws | ||
<span class="hljs-attribute">content-length</span><span class="hljs-punctuation">: </span>220 | ||
<span class="hljs-attribute">x-xss-protection</span><span class="hljs-punctuation">: </span>0 | ||
<span class="hljs-attribute">x-frame-options</span><span class="hljs-punctuation">: </span>SAMEORIGIN | ||
<span class="hljs-attribute">alt-svc</span><span class="hljs-punctuation">: </span>h3-Q050=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HTTP/2 301 | ||
location: https://www.google.com/ | ||
content-type: text/html; charset=UTF-8 | ||
date: Sat, 31 Oct 2020 22:47:14 GMT | ||
expires: Mon, 30 Nov 2020 22:47:14 GMT | ||
cache-control: public, max-age=2592000 | ||
server: gws | ||
content-length: 220 | ||
x-xss-protection: 0 | ||
x-frame-options: SAMEORIGIN | ||
alt-svc: h3-Q050=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43" |