Skip to content

Commit

Permalink
fix feedback.listen
Browse files Browse the repository at this point in the history
  • Loading branch information
tellnes committed Oct 25, 2012
1 parent 706b572 commit f2376a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -29,9 +29,9 @@ module.exports = function(options) {
}

self.listen = function() {
var server = require('http').createServer(function() {
var server = require('http').createServer(function(req, res) {
if (req.url === url) {
if (req.method === 'post') return client(req, res)
if (req.method === 'POST') return client(req, res)

res.writeHead(405)
res.end('AWS SES Feedback - Method not allowed')
Expand Down

0 comments on commit f2376a3

Please sign in to comment.