mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 01:38:30 +00:00
Make more major improvements to redbean
- POSIX regular expressions for Lua - Improved protocol parsing and encoding - Additional APIs for ZIP storage retrieval - Fix st_mode issue on NT for regular files - Generalized APIs for URL and Host handling - Worked out the kinks in resource resolution - Allow for custom error pages like /404.html
This commit is contained in:
parent
26ac6871da
commit
4effa23528
74 changed files with 3710 additions and 14246 deletions
|
@ -38,8 +38,8 @@ const char *GetHttpHeaderName(int h) {
|
|||
return "Cache-Control";
|
||||
case kHttpChunked:
|
||||
return "Chunked";
|
||||
case kHttpClose:
|
||||
return "Close";
|
||||
case kHttpLink:
|
||||
return "Link";
|
||||
case kHttpConnection:
|
||||
return "Connection";
|
||||
case kHttpContentBase:
|
||||
|
@ -53,7 +53,7 @@ const char *GetHttpHeaderName(int h) {
|
|||
case kHttpContentLocation:
|
||||
return "Content-Location";
|
||||
case kHttpContentMd5:
|
||||
return "Content-Md5";
|
||||
return "Content-MD5";
|
||||
case kHttpContentRange:
|
||||
return "Content-Range";
|
||||
case kHttpContentType:
|
||||
|
@ -118,8 +118,6 @@ const char *GetHttpHeaderName(int h) {
|
|||
return "WWW-Authenticate";
|
||||
case kHttpLastModified:
|
||||
return "Last-Modified";
|
||||
case kHttpCookie:
|
||||
return "Cookie";
|
||||
case kHttpTrailer:
|
||||
return "Trailer";
|
||||
case kHttpTe:
|
||||
|
@ -136,6 +134,8 @@ const char *GetHttpHeaderName(int h) {
|
|||
return "Origin";
|
||||
case kHttpUpgradeInsecureRequests:
|
||||
return "Upgrade-Insecure-Requests";
|
||||
case kHttpUri:
|
||||
return "URI";
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue