If you run your local version of owncloud using
docker run -e OWNCLOUD_DOMAIN=localhost:8080 -p8080:8080 owncloud/server
your shared links will have the following form: "http://localhost:8080/s/<token>".
However, using such links in the from_public_link function didn't work before, since the url passed to the Client contstructor would be only "http://localhost".
This PR fixes this case and the url will be "http://localhost:8080".
It doesn't change the url if the port is None.
Also the example in README.rst had a wrong name of the funcion's argument.
If you run your local version of owncloud using
docker run -e OWNCLOUD_DOMAIN=localhost:8080 -p8080:8080 owncloud/server
your shared links will have the following form:
"http://localhost:8080/s/<token>"
. However, using such links in thefrom_public_link
function didn't work before, since the url passed to the Client contstructor would be only "http://localhost". This PR fixes this case and the url will be "http://localhost:8080". It doesn't change the url if the port is None.Also the example in README.rst had a wrong name of the funcion's argument.