Fix bug for status code 303 location HEAD field is NULL
[vfc/gvnfm/vnflcm.git] / lcm / lcm / nf / views / common.py
index 4f86426..a57a93e 100644 (file)
@@ -53,7 +53,7 @@ def view_safe_call_with_log(logger):
             except NFLCMExceptionSeeOther as e:
                 logger.error(e.message)
                 resp = Response(status=status.HTTP_303_SEE_OTHER)
-                resp["Location"] = ""
+                resp["Location"] = e.message
                 # resp["Location"] = "subscriptions/%s" % e.id
                 return resp
             except NFLCMExceptionNotFound as e: