@@ -115,8 +115,7 @@ discard block |
||
| 115 | 115 | |
| 116 | 116 | $response = ''; |
| 117 | 117 | $splitter = false === $this->changeSetBoundary ? |
| 118 | - '' : |
|
| 119 | - '--' . $this->changeSetBoundary . $ODataEOL; |
|
| 118 | + '' : '--' . $this->changeSetBoundary . $ODataEOL; |
|
| 120 | 119 | $raw = $this->getRawRequests(); |
| 121 | 120 | foreach ($raw as $contentID => &$workingObject) { |
| 122 | 121 | $headers = $workingObject->outgoingResponse()->getHeaders(); |
@@ -138,16 +137,14 @@ discard block |
||
| 138 | 137 | } |
| 139 | 138 | $response .= trim($splitter); |
| 140 | 139 | $response .= false === $this->changeSetBoundary ? |
| 141 | - $ODataEOL : |
|
| 142 | - '--' . $ODataEOL; |
|
| 140 | + $ODataEOL : '--' . $ODataEOL; |
|
| 143 | 141 | $response = 'Content-Length: ' . |
| 144 | 142 | strlen($response) . |
| 145 | 143 | $ODataEOL . |
| 146 | 144 | $ODataEOL . |
| 147 | 145 | $response; |
| 148 | 146 | $response = false === $this->changeSetBoundary ? |
| 149 | - $response : |
|
| 150 | - 'Content-Type: multipart/mixed; boundary=' . |
|
| 147 | + $response : 'Content-Type: multipart/mixed; boundary=' . |
|
| 151 | 148 | $this->changeSetBoundary . |
| 152 | 149 | $ODataEOL . |
| 153 | 150 | $response; |
@@ -186,7 +183,7 @@ discard block |
||
| 186 | 183 | $inboundRequestHeaders[$name] = $value; |
| 187 | 184 | } |
| 188 | 185 | $host = $_SERVER['HTTP_HOST'] ?? $_SERVER['SERVER_NAME'] ?? $_SERVER['SERVER_ADDR'] ?? 'localhost'; |
| 189 | - $protocol=$_SERVER['PROTOCOL'] = isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) ? 'https' : 'http'; |
|
| 186 | + $protocol = $_SERVER['PROTOCOL'] = isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) ? 'https' : 'http'; |
|
| 190 | 187 | $this->rawRequests[$contentID] = new WebOperationContext( |
| 191 | 188 | new IncomingRequest( |
| 192 | 189 | new HTTPRequestMethod($RequesetType), |