markusahlstrand / cloudworker-proxy

An api gateway for cloudflare workers
MIT License
194 stars 22 forks source link

PUT to S3 bucket it not forwarded (its forwarded as a GET) #119

Closed tomlarkworthy closed 1 year ago

tomlarkworthy commented 1 year ago

Love the proxy. I want to use it to mediate writes to S3, but it seems to be overfitted to the GET use-case.

I am am happy to open a PR if you are happy to merge it.

What I am trying to acheive is explained on my demo proxy: https://mps3-proxy.endpointservices.workers.dev/

markusahlstrand commented 1 year ago

Yes, happy to merge any PR's :) Think this project is due for a bit of renovation..

tomlarkworthy commented 1 year ago

ok fixed in https://github.com/markusahlstrand/cloudworker-proxy/pull/120, the method needs to come from the ctx.request.method, not the ctx.method

markusahlstrand commented 1 year ago

Approved :)