fix to send response on non POST requests