| /trunk/services/bibliotheque/ReponseHttp.php |
|---|
| 53,7 → 53,12 |
| private function transformerReponseCorpsSuivantMime() { |
| switch ($this->resultatService->mime) { |
| case 'application/json' : |
| $this->resultatService->corps = json_encode($this->resultatService->corps); |
| if (isset($_GET['callback'])) { |
| $contenu = $_GET['callback'].'('.json_encode($donnees).');'; |
| } else { |
| $contenu = json_encode($this->resultatService->corps); |
| } |
| $this->resultatService->corps = $contenu; |
| break; |
| } |
| } |