Skip to content

Instantly share code, notes, and snippets.

View eagleeye's full-sized avatar
🏍️
staying alive

Andrii Shumada eagleeye

🏍️
staying alive
View GitHub Profile
http = require "http"
proxyToHost = 'www.sandbox.prostoprint.com'
server = http.createServer (request, response) ->
delete request.headers.host
delete request.headers.hostname
request.headers['Accept'] = 'application/json'
proxiedRequest = http.request
hostname: proxyToHost