summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2019-08-05 09:48:54 +0000
committergebele <gebele@in-silico.ch>2019-08-05 09:48:54 +0000
commit1546e77e9b2796f20215caa23f06822c96be27ee (patch)
tree491580daa5882e62d327135009246dab4e252940 /lib
parentb349cb51c4e46e1ae1bb309e9c589f1cff89e5af (diff)
ensure xhr requests are https to avoid mixed content issue in browsers
Diffstat (limited to 'lib')
-rw-r--r--lib/model.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/model.rb b/lib/model.rb
index b26447d..55172b0 100644
--- a/lib/model.rb
+++ b/lib/model.rb
@@ -145,7 +145,7 @@ post "/api/model/:id/?" do
@task.save
end#main task
tid = @task.id.to_s
- return 202, to("/task/#{tid}").to_json
+ return 202, "//#{ENV['VIRTUAL_HOST']}/task/#{tid}".to_json
else
halt 400, "No accepted content type"
end