diff --git a/frontend/src/views/datamanager/DataDetailHttpData.vue b/frontend/src/views/datamanager/DataDetailHttpData.vue index 34beacae4..fc5a0b0e2 100644 --- a/frontend/src/views/datamanager/DataDetailHttpData.vue +++ b/frontend/src/views/datamanager/DataDetailHttpData.vue @@ -184,7 +184,7 @@ export default { Object.assign(newReq, JSON.parse(this.editorCache.req)) newReq['data'] = this.editorCache.reqData newData['request'] = newReq - newData['request']['headers']['internal_flow'] = 'datamanager' + newData['request']['headers']['lyrebirdInternalFlow'] = 'datamanager' // Add response const newResp = {} Object.assign(newResp, JSON.parse(this.editorCache.resp)) diff --git a/lyrebird/mock/blueprints/apis/mock.py b/lyrebird/mock/blueprints/apis/mock.py index a8d642524..7a6e3e24e 100644 --- a/lyrebird/mock/blueprints/apis/mock.py +++ b/lyrebird/mock/blueprints/apis/mock.py @@ -114,8 +114,8 @@ def put(self): data = request.json # Import encoder for encoding the requested content application.encoders_decoders.encoder_handler(data) - if 'internal_flow' in data['request']['headers']: - del data['request']['headers']['internal_flow'] + if 'lyrebirdInternalFlow' in data['request']['headers']: + del data['request']['headers']['lyrebirdInternalFlow'] context.application.data_manager.update_data(data_id, data) context.application.data_manager.reactive() return context.make_ok_response()