Commit b6933fee authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

Merge branch...

Merge branch 'OCF62-returned-location-header-in-security-api-gives-different-results' into 'staging'

Resolve "Returned Location Header in Security API gives different results."

Closes #62

See merge request !47
parents 9e26b49f 00c9c5cb
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -356,8 +356,8 @@ class SecurityOperations(Resource):
            current_app.logger.debug("Updated security context")

            res= make_response(object=dict_to_camel_case(clean_empty(result)), status=200)
            res.headers['Location'] = "https://${CAPIF_HOSTNAME}/capif-security/v1/trustedInvokers/" + str(
                api_invoker_id)
            res.headers['Location'] = "https://{}/capif-security/v1/trustedInvokers/{}".format(
                os.getenv('CAPIF_HOSTNAME'), str(api_invoker_id))
            return res
        except Exception as e:
            exception = "An exception occurred in update security info"
+1 −1

File changed.

Contains only whitespace changes.