mrpink
1/7/2009 11:06:00 AM
Hi,
I'm playing with thin and racks at the moment. I tried to built a really basic application:
# test.ru
content=["Is it working?<br><b>blublublub</b>"]
app = proc do |env|
[
200, # Status code
{ # Response headers
'Content-Type' => 'text/html',
'Content-Length' => "content[0].length",
},
content[0]
]
end
run app
If I start it with: $ thin start -R test.ru
everything looks okay: No errors. Also when I access the webserver with my browser I don't get no errors but the site displayed. But what seems strange is that my browser tries to take more data than it should actually take. So it displays the content but is trying to load even more. But there isn't more data? Can someone explain this behavior? I'm sure I'm doing something wrong here or?