TritonDataCenter / node-docker-registry-client

node.js client for the docker registry
Mozilla Public License 2.0
64 stars 33 forks source link

fix broken getImgAncestry on node 0.12 #4

Closed vincentwoo closed 9 years ago

vincentwoo commented 9 years ago

Node is now stricter about passing undefined values to setHeader, which is what happens here if there are no cookies. getImgAncestry flat out doesn't work in 0.12.

This change returns an empty cookie header if there are no cookies.

trentm commented 9 years ago

Thanks! Published in version 1.2.2.