diff --git a/shared/main.php b/shared/main.php
index 0d3db96..9a6fb07 100644
--- a/shared/main.php
+++ b/shared/main.php
@@ -16,7 +16,7 @@ limitations under the License.
*/
function uupApiVersion() {
- return '1.17.0';
+ return '1.17.1';
}
require_once dirname(__FILE__).'/auths.php';
diff --git a/shared/requests.php b/shared/requests.php
index 20ecb92..d7a3ce2 100644
--- a/shared/requests.php
+++ b/shared/requests.php
@@ -119,9 +119,11 @@ function composeFetchUpdRequest($device, $encData, $arch, $flight, $ring, $build
$createdTime = time();
$expiresTime = $createdTime + 120;
+ $cookieExpiresTime = $createdTime + 604800;
$created = gmdate(DATE_W3C, $createdTime);
$expires = gmdate(DATE_W3C, $expiresTime);
+ $cookieExpires = gmdate(DATE_W3C, $cookieExpiresTime);
$branch = branchFromBuild($build);
@@ -155,7 +157,7 @@ function composeFetchUpdRequest($device, $encData, $arch, $flight, $ring, $build
$sku
);
- return 'http://www.microsoft.com/SoftwareDistribution/Server/ClientWebService/SyncUpdatesurn:uuid:'.$uuid.'https://fe3.delivery.mp.microsoft.com/ClientWebService/client.asmx'.$created.''.$expires.''.$device.'2046-02-18T21:29:10Z'.$encData.'falsefalsetruetrueExtendedLocalizedPropertiesEulaen-USfalse'.$deviceAttributes.''.$callerAttrib.''.$products.'';
+ return 'http://www.microsoft.com/SoftwareDistribution/Server/ClientWebService/SyncUpdatesurn:uuid:'.$uuid.'https://fe3.delivery.mp.microsoft.com/ClientWebService/client.asmx'.$created.''.$expires.''.$device.''.$cookieExpires.''.$encData.'falsefalsetruetrueExtendedLocalizedPropertiesEulaen-USfalse'.$deviceAttributes.''.$callerAttrib.''.$products.'';
}
// Composes POST data for Get Cookie request