summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Bernlöhr <Heiko.Bernloehr@FreeIT.de>2020-09-10 15:17:07 +0200
committerHeiko Bernlöhr <Heiko.Bernloehr@FreeIT.de>2020-09-10 15:33:54 +0200
commitf0e9d59153b172416d83475558dbf0c6eeb96887 (patch)
tree15cfd00d8b9bc22971fa5ffe08330a1d52668d54
parentdee3f81c09f82b6152b9796e03d76e162079667d (diff)
downloadecs-f0e9d59153b172416d83475558dbf0c6eeb96887.tar.gz
ecs-f0e9d59153b172416d83475558dbf0c6eeb96887.zip
Add logging for http Location header.
-rw-r--r--app/controllers/messages_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb
index 7eecc7b..2bb9b05 100644
--- a/app/controllers/messages_controller.rb
+++ b/app/controllers/messages_controller.rb
@@ -247,6 +247,7 @@ protected
location += ":" + request.headers["SERVER_PORT"] unless [80,443].include? request.headers["SERVER_PORT"]
location += request.headers["SCRIPT_NAME"] if request.headers["SCRIPT_NAME"]
location += request.path.gsub(/\/*$/,'') + "/" + @record.id.to_s
+ logger.info "Location: #{location}"
if @app_namespace == 'sys' and @ressource_name == 'auths'
render :text => @body, :layout => false, :status => 201, :location => location, :content_type => Mime::Type.lookup_by_extension("json")
else