Skip to content

Commit b5cb300

Browse files
Sends Accept: text/html header when requesting markup from configured URLs
1 parent 4efbf4b commit b5cb300

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/services/markupService.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ const httpService = require('./httpService');
44

55
module.exports = {
66
get(url) {
7-
return httpService.get(url);
7+
return httpService.get(url, {
8+
headers: {
9+
Accept: 'text/html',
10+
}
11+
});
812
}
913
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "valimate",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"description": "Automated HTML validation tool",
55
"repository": "https://github.com/jamesseanwright/valimate",
66
"bin": {

0 commit comments

Comments
 (0)