Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Aug 6, 2021
1 parent 31562bf commit 18a1f96
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion stub.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ async function getServerConfig(otherUser) {
if (otherServer.startsWith('http://')) {
// support http:// for testing
} else if (!otherServer.startsWith('https://')) {
otherServer = `https://${otherServer}`;
// otherServer = `https://${otherServer}`;
// work around https://github.com/cs3org/reva/issues/1962
otherServer = `http://${otherServer}`;
}
if (!otherServer.endsWith('/')) {
otherServer = `${otherServer}/`;
Expand Down Expand Up @@ -70,6 +72,10 @@ async function createShare(consumer) {
protocol: { name: 'webdav', options: { sharedSecret: 'shareMe' } }
}
console.log(shareSpec, shareSpec.protocol);
// work around https://github.com/cs3org/reva/issues/1752
if (typeof config.endPoint === 'undefined') {
config.endPoint = config.endpoint;
}
const postRes = await fetch(`${config.endPoint}/shares`, {
method: 'POST',
headers: {
Expand Down

0 comments on commit 18a1f96

Please sign in to comment.