Replace WebDAV HEAD requests with GET requests
This commit is contained in:
parent
4bdfa5f30b
commit
cba0c0ad51
1 changed files with 2 additions and 2 deletions
|
@ -728,7 +728,7 @@ Zotero.Sync.Storage.Session.WebDAV.prototype.getLastSyncTime = function (callbac
|
||||||
var uri = this.rootURI;
|
var uri = this.rootURI;
|
||||||
var successFileURI = uri.clone();
|
var successFileURI = uri.clone();
|
||||||
successFileURI.spec += "lastsync";
|
successFileURI.spec += "lastsync";
|
||||||
Zotero.HTTP.doHead(successFileURI, function (req) {
|
Zotero.HTTP.doGet(successFileURI, function (req) {
|
||||||
var ts = undefined;
|
var ts = undefined;
|
||||||
try {
|
try {
|
||||||
if (req.responseText) {
|
if (req.responseText) {
|
||||||
|
@ -926,7 +926,7 @@ Zotero.Sync.Storage.Session.WebDAV.prototype.checkServer = function (callback) {
|
||||||
case 200:
|
case 200:
|
||||||
case 201:
|
case 201:
|
||||||
case 204:
|
case 204:
|
||||||
Zotero.HTTP.doHead(
|
Zotero.HTTP.doGet(
|
||||||
testFileURI,
|
testFileURI,
|
||||||
function (req) {
|
function (req) {
|
||||||
Zotero.debug(req.responseText);
|
Zotero.debug(req.responseText);
|
||||||
|
|
Loading…
Reference in a new issue