Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Challenge 12 passes without POST qualifier #466

Open
kwhms opened this issue Sep 1, 2016 · 0 comments
Open

Challenge 12 passes without POST qualifier #466

kwhms opened this issue Sep 1, 2016 · 0 comments

Comments

@kwhms
Copy link

kwhms commented Sep 1, 2016

Challenge 12 stipulates that the http server should only handle POST requests but I was able to successfully pass the verification test without any POST logic checking in my solution:

var http = require('http');
var map = require('through2-map');

var port = process.argv[2];

var server = http.createServer( function(request, response){

    request.pipe(map(function(currValue){
        return currValue.toString().toUpperCase()
    })).pipe(response);

});

server.listen(port);

Verification testing should check that GET requests do not receive the modified string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant