Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

handle 404 responses from replay correctly

  • Loading branch information...
commit 0eef1798c49db9c109675bf26153c32965feb30d 1 parent be1934e
root authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 replay/replay_server.rb
View
4 replay/replay_server.rb
@@ -352,7 +352,7 @@ class ReplayServer < Patchbay
now = replay_app.source(src).make_shot_now
if tc < 0 or tc > now.start
- render :json => '', :status => 404
+ render :json => '', :error => 404
else
shot = replay_app.source(src).make_shot_at(tc)
render :jpg => shot.preview
@@ -365,7 +365,7 @@ class ReplayServer < Patchbay
now = replay_app.source(src).make_shot_now
if tc < 0 or tc > now.start
- render :json => '', :status => 404
+ render :json => '', :error => 404
else
shot = replay_app.source(src).make_shot_at(tc)
render :jpg => shot.thumbnail
Please sign in to comment.
Something went wrong with that request. Please try again.