You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/05/02 06:41:16 UTC

[GitHub] [apisix] qihaiyan commented on a diff in pull request #6949: api-breaker plugin returns default response body

qihaiyan commented on code in PR #6949:
URL: https://github.com/apache/apisix/pull/6949#discussion_r862619029


##########
apisix/plugins/api-breaker.lua:
##########
@@ -35,6 +35,13 @@ local schema = {
             minimum = 200,
             maximum = 599,
         },
+        break_response_body = {
+            type = "string"
+        },
+        break_response_content_type = {

Review Comment:
   > As for this plugin, I would suggest adding a field to add any response headers instead of just content-type.
   
   Is there any other plugin witch such a field? I'm not sure of which field is suitable for representing any response headers.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org