GithubHelp home page GithubHelp logo

streunerlein / nano Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apache/nano

1.0 1.0 0.0 863 KB

NanoCouch is a minimalistic driver for CouchDB built on mikeal/request

License: Other

JavaScript 100.00%

nano's People

Contributors

cliffano avatar daleharvey avatar dscape avatar fracek avatar jaybeavers avatar mark-hahn avatar oleics avatar perezd avatar pgte avatar rapidrapids avatar streunerlein avatar tarantoga avatar thiagoarrais avatar

Stargazers

 avatar

Watchers

 avatar

nano's Issues

HTTP-Host in opts.headers has to be the same as CouchDB-Host

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.