make-fetch 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -150,6 +150,8 @@ function matches (request, route, property) {
|
|
|
150
150
|
return areEqual(route.hostname, new URL(request.url).hostname)
|
|
151
151
|
} else if (property === 'protocol') {
|
|
152
152
|
return areEqual(route.protocol, new URL(request.url).protocol)
|
|
153
|
+
} else if(property === 'method') {
|
|
154
|
+
return areEqual(route.method, request.method.toUpperCase())
|
|
153
155
|
} else {
|
|
154
156
|
const routeProperty = route[property]
|
|
155
157
|
const requestProperty = request[property]
|