streunerlein / nano Goto Github PK
View Code? Open in Web Editor NEWThis project forked from apache/nano
NanoCouch is a minimalistic driver for CouchDB built on mikeal/request
License: Other
This project forked from apache/nano
NanoCouch is a minimalistic driver for CouchDB built on mikeal/request
License: Other
The HTTP-Host field in opts.headers has to be set to the CouchDb hostname. I had a simple piping script, see https://gist.github.com/2784839/a9cad0799fa9255e24419d4641ce5ae8637934b1, which worked fine as long as node and CouchDb had the same hostname (localhost) - but it broke as soon as node was available under a other hostname (example.org) and CouchDb still under localhost (or take iriscouch.com e.g.).
This can be quick fixed by adjusting the headers.host field before passing it to nano's request: https://gist.github.com/2784839/b92e2499f618cf58c08f7d79f3ba3ef2cd16cfcd
Question is, if this should be built right into the request function of nano, so it makes sure, the hostname in the HTTP header is set to the CouchDB hostname request... or does this lead to strange side effects?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.