mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-17 08:00:32 +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
|
@ -168,6 +168,22 @@ const char *GetHttpHeaderName(int h) {
|
|||
return "WWW-Authenticate";
|
||||
case kHttpVia:
|
||||
return "Via";
|
||||
case kHttpStrictTransportSecurity:
|
||||
return "Strict-Transport-Security";
|
||||
case kHttpXFrameOptions:
|
||||
return "X-Frame-Options";
|
||||
case kHttpXContentTypeOptions:
|
||||
return "X-Content-Type-Options";
|
||||
case kHttpAltSvc:
|
||||
return "Alt-Svc";
|
||||
case kHttpReferrerPolicy:
|
||||
return "Referrer-Policy";
|
||||
case kHttpXXssProtection:
|
||||
return "X-XSS-Protection";
|
||||
case kHttpAcceptRanges:
|
||||
return "Accept-Ranges";
|
||||
case kHttpSetCookie:
|
||||
return "Set-Cookie";
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue