Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix remote file validation #3

Merged
merged 1 commit into from

2 participants

@Lockyc
Collaborator

Fixes Issue #2

@thomasdavis thomasdavis merged commit 44d5d85 into thomasdavis:master

1 check passed

Details default The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 8, 2013
  1. @Lockyc
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/w3cjs.js
View
6 lib/w3cjs.js
@@ -32,10 +32,8 @@ function validate(options) {
} else {
var req = request.get(w3cCheckUrl);
req.set('User-Agent','w3cjs - npm module')
- req.send({
- uri: file,
- output: output
- });
+ req.query({ output: output })
+ req.query({ uri: file })
};
req.end(function(res){
if(output === 'json'){
Something went wrong with that request. Please try again.