-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build the dev environment and try to solve the mismatch query.
- Loading branch information
Showing
7 changed files
with
441 additions
and
438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,3 +86,6 @@ typings/ | |
# Custom Misc | ||
build/ | ||
builds/ | ||
.DS_Store | ||
package.json | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
let http = require('http'); | ||
let http = require("http"); | ||
|
||
let port = 8080; | ||
|
||
http.createServer(function(req, res) { | ||
console.log('incomming request!'); | ||
console.log('method: ', req.method); | ||
console.log('url: ', req.url); | ||
console.log('header: ', req.headers); | ||
res.writeHead(429, {'Content-Type': 'text/plain', 'Retry-After': 3600}); | ||
res.end('Yikes! Your\'re blocked!'); | ||
}).listen(port); | ||
http | ||
.createServer(function (req, res) { | ||
console.log("incomming request!"); | ||
console.log("method: ", req.method); | ||
console.log("url: ", req.url); | ||
console.log("header: ", req.headers); | ||
res.writeHead(429, { "Content-Type": "text/plain", "Retry-After": 3600 }); | ||
res.end("Yikes! Your're blocked!"); | ||
}) | ||
.listen(port); | ||
|
||
console.log('Starting super simple http server on localhost:' + port + '!'); | ||
console.log("Starting super simple http server on localhost:" + port + "!"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
let http = require('http'); | ||
let http = require("http"); | ||
|
||
let port = 8080; | ||
|
||
http.createServer(function(req, res) { | ||
console.log('incomming request!'); | ||
console.log('method: ', req.method); | ||
console.log('url: ', req.url); | ||
console.log('header: ', req.headers); | ||
res.writeHead(200, {'Content-Type': 'text/plain'}); | ||
res.end('Such Captcha! Much Protec! www.google.com/recaptcha/api.js Wow!'); | ||
}).listen(port); | ||
http | ||
.createServer(function (req, res) { | ||
console.log("incomming request!"); | ||
console.log("method: ", req.method); | ||
console.log("url: ", req.url); | ||
console.log("header: ", req.headers); | ||
res.writeHead(200, { "Content-Type": "text/plain" }); | ||
res.end("Such Captcha! Much Protec! www.google.com/recaptcha/api.js Wow!"); | ||
}) | ||
.listen(port); | ||
|
||
console.log('Starting super simple http server on localhost:' + port + '!'); | ||
console.log("Starting super simple http server on localhost:" + port + "!"); |
Oops, something went wrong.