@tinyhttp/req
Advanced tools
Comparing version 0.5.6 to 0.5.7
# @tinyhttp/req | ||
## 0.5.7 | ||
### Patch Changes | ||
- strip some bytes | ||
- Updated dependencies [undefined] | ||
- @tinyhttp/type-is@0.5.4 | ||
- @tinyhttp/url@0.5.4 | ||
## 0.5.6 | ||
@@ -4,0 +13,0 @@ |
@@ -36,7 +36,6 @@ import parseRange from 'range-parser'; | ||
if ((status >= 200 && status < 300) || status === 304) { | ||
const resHeaders = { | ||
return fresh(req.headers, { | ||
etag: getRequestHeader(req)('ETag'), | ||
'last-modified': res.getHeader('Last-Modified'), | ||
}; | ||
return fresh(req.headers, resHeaders); | ||
}); | ||
} | ||
@@ -43,0 +42,0 @@ return false; |
{ | ||
"name": "@tinyhttp/req", | ||
"version": "0.5.6", | ||
"version": "0.5.7", | ||
"type": "module", | ||
@@ -42,4 +42,4 @@ "description": "request extensions for tinyhttp", | ||
"@tinyhttp/accepts": "0.5.3", | ||
"@tinyhttp/type-is": "0.5.3", | ||
"@tinyhttp/url": "0.5.3", | ||
"@tinyhttp/type-is": "0.5.4", | ||
"@tinyhttp/url": "0.5.4", | ||
"es-fresh": "^0.0.8", | ||
@@ -46,0 +46,0 @@ "range-parser": "^1.2.1" |
@@ -39,8 +39,6 @@ import { IncomingMessage as Request, ServerResponse as Response } from 'http' | ||
if ((status >= 200 && status < 300) || status === 304) { | ||
const resHeaders = { | ||
return fresh(req.headers, { | ||
etag: getRequestHeader(req)('ETag'), | ||
'last-modified': res.getHeader('Last-Modified'), | ||
} | ||
return fresh(req.headers, resHeaders) | ||
}) | ||
} | ||
@@ -47,0 +45,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14241
171
+ Added@tinyhttp/type-is@0.5.4(transitive)
+ Added@tinyhttp/url@0.5.4(transitive)
- Removed@tinyhttp/type-is@0.5.3(transitive)
- Removed@tinyhttp/url@0.5.3(transitive)
Updated@tinyhttp/type-is@0.5.4
Updated@tinyhttp/url@0.5.4