# Proxying https request is not working when adjusting response in custom plugin

**URL:** <https://discuss.konghq.com/t/proxying-https-request-is-not-working-when-adjusting-response-in-custom-plugin/11332>\
**Category:** Questions\
**Created:** [March 21, 2023, 10:00am UTC](https://discuss.konghq.com/t/proxying-https-request-is-not-working-when-adjusting-response-in-custom-plugin/11332 "2023-03-21T10:00:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![salim\_rahal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/salim_rahal/32/3847_2.png) [@salim\_rahal](https://discuss.konghq.com/u/salim_rahal)\
**Post date:** [March 21, 2023, 10:00am UTC](https://discuss.konghq.com/t/proxying-https-request-is-not-working-when-adjusting-response-in-custom-plugin/11332/1 "2023-03-21T10:00:32Z")

</div>

Dears,  
I have a custom plugin where I want to adjust upstream response (call…enable\_buffering(), and adding json to http response during body\_filter phase).  
I created new route and upstream to handle HTTPS endpoints, but kong is triggering an error when I try to test my api through kong proxy:I got following error:

_ **buffered proxying cannot currently be enabled with http/2, please use http/1.x instead, client: 172.18.0.1, server: kong, request: "GET /api/target?roomName=1…** _

It seems my curl command uses by default http2 when calling https request.

please how can I proxy https request through kong and adjust upstream response accordingly?

find below more details:

kong error: _buffered proxying cannot currently be enabled with http/2, please use http/1.x_

#route → service  
/api/target/-\> /upstreamService

#https request not working through kong  
curl -kv --get --location ‘[https://localhost:8443/api/target?roomName=1](https://localhost:8443/api/target?roomName=1)’

server logs:

/kong/plugins/custom-auth/handler.lua:105: buffered proxying cannot currently be enabled with http/2, please use http/1.x instead, client: 172.18.0.1, server: kong, request: "GET /api/target?roomName=1

#https working request , forcing http1.1:

curl --get -kv --location --http1.1 ‘[https://localhost:8443/api/target?roomName=1](https://localhost:8443/api/target?roomName=1)’  
result success response 200

#enable buffering in access phase  
kong.service.request.enable\_buffering()

Thank you,
