Support #11305
Updated by Dominic Cleal over 9 years ago
it seems to be same bug as #2494 foreman proxy returning html instead of JSON but i have different version of sinatra. here is my curl output: <pre> [root@tony_zheng-pc ~]# curl -k -H 'accept application/json' http://105.1.43.51:8000/features <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>DHCP Web interface</title> <link href='/css/styles.css' rel='stylesheet' /> </head> <body> <div id='wrapper'> <div id='header'> <h1>DHCP Browser</h1> <div id='nav'> <ol> <a href='/dhcp'> <li>Home</li> </a> <a href='/features'> <li>Features</li> </a> </ol> </div> </div> <div id='content'> <h2>Suported features</h2> <ul> </ul> </div> <div id='footer'> <p> © 2010 <a href='mailto:ohadlevy@gmail.com'> Ohad Levy </a> </p> </div> </div> </body> </html> [root@tony_zheng-pc ~]# </pre> and here are versions of sinatra i have: [root@pmonkey ~]# rpm -qa |grep sinatra rubygem-sinatra-1.0-2.el6.noarch ruby193-rubygem-sinatra-1.3.2-12.el6.noarch