Created
          December 9, 2015 16:54 
        
      - 
      
- 
        Save slavahatnuke/64a05514dd41be9510be to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or 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
    
  
  
    
  | var http = require('http'); | |
| var fs = require('fs'); | |
| var img = fs.readFileSync('1x1.gif'); | |
| var server = http.createServer(function (req, res) { | |
| res.writeHead(200, {'Content-Type': 'image/gif' }); | |
| res.end(img, 'binary'); | |
| }); | |
| var port = 3000; | |
| server.listen(port, '0.0.0.0', function() { | |
| console.log('Started on port ' + port); | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment