Details
-
Bug
-
Resolution: Cannot Reproduce
-
Trivial
-
None
-
Professional Edition
-
None
-
Nginx
Description
When i use the API with this URL http://observium.domain/api/v0/devices and a correct HTTP auth, server return the entire HTML website instead of JSON.
this curl command : curl -u <username>:<password> http://observium.domain.com/api/v0/devices/
return :
<!DOCTYPE html>
|
<html lang="en"> |
<head>
|
<base href="https://observium.domain/" /> |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
|
<!-- CSS BEGIN -->
|
<link href="css/observium.css?v=17.12.8994" rel="stylesheet" type="text/css" /> |
<link href="css/sprite.css?v=17.12.8994" rel="stylesheet" type="text/css" /> |
<!-- CSS END -->
|
<!-- JS BEGIN -->
|
<script type="text/javascript" src="js/jquery.min.js?v=17.12.8994"></script> |
<script type="text/javascript" src="js/bootstrap.min.js?v=17.12.8994"></script> |
<!-- JS END -->
|
<!--[if lt IE 9]><script src="js/html5shiv.min.js"></script><![endif]--> |