Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipfsconn/ipfshttp: handle cid args passed in url path correctly #392

Merged
merged 2 commits into from
May 1, 2018

Commits on Apr 30, 2018

  1. ipfsconn/ipfshttp: handle cid args passed in url path correctly

    The extractCid function was added to enable the extraction of
    a cid argument from either the url path or query string.
    This puts the proxy behaviour on par with the current IPFS API.
    The function does rely on the fact that ipfs-cluster doesn't
    intercept any command that has more than one subcommand.
    If that changes, this function will have to be updated.
    
    License: MIT
    Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
    lanzafame committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    22ec210 View commit details
    Browse the repository at this point in the history
  2. ipfsconn/ipfshttp: go1.9 ServeMux doesn't redirect

    query args correctly, requiring both a trailing slash and
    non-trailing slash handle pattern to be defined for the
    pin and unpin handlers.
    
    License: MIT
    Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
    lanzafame committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    b50a05f View commit details
    Browse the repository at this point in the history