We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d4d664 commit 17aef14Copy full SHA for 17aef14
ReactNativeClient/lib/WebDavApi.js
@@ -350,6 +350,7 @@ class WebDavApi {
350
// finds out that no resource has this ID and simply sends the requested data.
351
// Also add a random value to make sure the eTag is unique for each call.
352
if (['GET', 'HEAD'].indexOf(method) < 0) headers['If-None-Match'] = `JoplinIgnore-${Math.floor(Math.random() * 100000)}`;
353
+ if (!headers['User-Agent']) headers['User-Agent'] = 'Joplin/1.0';
354
355
const fetchOptions = {};
356
fetchOptions.headers = headers;
0 commit comments