# HG changeset patch # User Mahlon E. Smith # Date 1505322551 25200 # Wed Sep 13 10:09:11 2017 -0700 # Node ID 15b877ef492e2ebbc2d16efbfd500cc693c3a9b7 # Parent bf37a1852e615f98a33af453394ed8ea5fa530ee Explicitly set the HTTP status when returning resources. diff --git a/lib/thingfish/handler.rb b/lib/thingfish/handler.rb --- a/lib/thingfish/handler.rb +++ b/lib/thingfish/handler.rb @@ -338,6 +338,7 @@ res.body = object res.content_type = metadata['format'] + res.status = HTTP::OK return res end @@ -369,6 +370,7 @@ res.body = object end + res.status = HTTP::OK return res end