Baoyuantop commented on issue #2368:
URL: 
https://github.com/apache/apisix-dashboard/issues/2368#issuecomment-1062515503


   Hi @840963657, thanks for your report. After examination, there is indeed 
this problem. Would you like to help fix this problem?
   
   ### The reason
   The request headers in the health check are empty by default, and in this 
case, there is no `req_headers` field in the request data sent by the web to 
the API. However, when the user makes changes in this field, especially by 
removing all request headers, the data sent to the API contains the 
`req_headers` field and the value is an empty array, which causes an error.
   
   ### Possible solutions
   The UI form ensures that requests sent to the API always do not contain the 
`req_headers` field, regardless of whether the initial value of the request 
header is empty or the user removes all the request headers. And send the 
correct array of data to the API after the user has entered the request 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to