Disable Transfer-Encoding in rest response header

VikasGupa1
Kilo Contributor

Third party application want to disable Transfer-Encoding as 'chunked' in rest response header from ServiceNow.

I have tried with "response.setHeaders" in scripted rest api also tried creating new headers in the table - sys_response_header and updating the property- glide.http.headers_config.enabled property to false but still the response contains 'Transfer-Encoding" as "chunked".

 

Also how to add 'content-length' in response header please.

 

Any suggestions to remove 'transfer-encoding' from rest response would be highly appreciated.

 

Ref: https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/http-response-headers/co...

headers_chunked.PNG

 

0 REPLIES 0