Comparing version 0.6.1 to 0.6.2
# CHANGES to httpquery | ||
## 0.6.2 | ||
- fix: avoid erring on implicit `index.html` with query params | ||
- fix: allow detection of XHTML with query params | ||
## 0.6.1 | ||
@@ -4,0 +9,0 @@ |
@@ -52,3 +52,3 @@ // Todo: Make this integratable into a pipeline; ensure can use HTML or XML DOM with content-type accordingly | ||
const clientJSONPathSupport = clientSupportCheck(req, 'jsonpath'); | ||
const isXHTML = url.match(/\.xhtml$/u); | ||
const isXHTML = url.match(/\.xhtml(\?.*)$/u); | ||
const isXML = url.match(/\.xml$/u); | ||
@@ -87,3 +87,3 @@ const isTEI = url.match(/\.tei$/u); | ||
url = (url.slice(-1) === '/' ? url + 'index.html' : url).replace(/\?.*$/u, ''); | ||
url = url.replace(/(\/|\/\?.*)$/u, '/index.html').replace(/\?.*$/u, ''); | ||
// url = require('url').parse(url).pathname; // Need to strip off request parameters? | ||
@@ -90,0 +90,0 @@ // console.log('url:'+url); |
{ | ||
"name": "httpquery", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"author": "Brett Zamir", | ||
@@ -5,0 +5,0 @@ "contributors": [], |
61308