mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 22:02:27 +00:00
Merge HTTP request / response parsing code
This change also fixes a bug so that DNS lookups work correctly when the first answer is a CNAME record.
This commit is contained in:
parent
5a6c0f27c3
commit
a68cc690ff
20 changed files with 561 additions and 616 deletions
|
@ -23,8 +23,8 @@
|
|||
/**
|
||||
* Returns true if standard header has substring.
|
||||
*
|
||||
* @param m is message parsed by ParseHttpRequest
|
||||
* @param b is buffer that ParseHttpRequest parsed
|
||||
* @param m is message parsed by ParseHttpMessage
|
||||
* @param b is buffer that ParseHttpMessage parsed
|
||||
* @param h is known header, e.g. kHttpAcceptEncoding
|
||||
* @param s should not contain comma
|
||||
* @param n is byte length of s where -1 implies strlen
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue