Merge branch 'master' of http://git.syncroton.org/Syncroton into SyncrotonMerge2
[tine20] / tine20 / library / Syncroton / lib / Syncroton / Server.php
index ab41628..0e57ddd 100644 (file)
@@ -145,12 +145,12 @@ class Syncroton_Server
             if ($this->_logger instanceof Zend_Log) 
                 $this->_logger->info(__METHOD__ . '::' . __LINE__ . " provisioning needed");
             
             if ($this->_logger instanceof Zend_Log) 
                 $this->_logger->info(__METHOD__ . '::' . __LINE__ . " provisioning needed");
             
+            header("HTTP/1.1 449 Retry after sending a PROVISION command");
+            
             if (version_compare($device->acsversion, '14.0', '>=')) {
                 $response = $sepn->domDocument;
             } else {
                 // pre 14.0 method
             if (version_compare($device->acsversion, '14.0', '>=')) {
                 $response = $sepn->domDocument;
             } else {
                 // pre 14.0 method
-                header("HTTP/1.1 449 Retry after sending a PROVISION command");
-                   
                 return;
             }
             
                 return;
             }