kwhitley / itty-durable

Cloudflare Durable Objects + Itty Router = shorter code
MIT License
251 stars 18 forks source link

updated to internals to allow websocket passthrough #32

Closed kwhitley closed 1 year ago

gishmel commented 1 year ago

I am still receiving the error as if the Upgrade header is not being passed through but I guess it's also possible I am not doing something else properly? Screenshot from 2023-01-11 13-42-12

Turns out case sensitivity will get me everytime; Connection should be Upgrade and it works swimmingly! Thanks so much for the quick fix!

kwhitley commented 1 year ago

Wait, is there a case-sensitivity issue going on? Either should be fine, surely?

gishmel commented 1 year ago

I thought it was a case sensitivity issue but now I am getting it to work with either so idk must be me haha. Anyways it totally works getting back a good ole 101 status code and have a websocket to work with! Thanks for all your help!

kwhitley commented 1 year ago

Whew! That's great news! :) Happy to help - and your issue/description/investigation definitely helped me get to the finish line faster!