Skip to content

Conversation

@cjlarose
Copy link
Member

@cjlarose cjlarose commented Nov 24, 2021

Part of #290

This change replaces the use of the vendored httputil package (which appears to be copied from an old version of the Go standard library) to the version of that package available from the modern standard library. It doesn't modify the usage of the other package mentioned in #290 (httpu).

Manually, I tested the following features:

  • HTTP->Unix Domain Socket proxying
  • HTTP->HTTP proxying
  • Requests to unknown applications (e.g., bogus.test)
  • Serving /public files directly
  • Requests to /status and to /events for the Host puma-dev

This is to prepare for the migration to the Go standard library's
implementation of http.ReverseProxy, which no longer gives access to the
raw http.ResponseWriter.
@cjlarose cjlarose force-pushed the upgrade-to-stdlib-httputil branch from ded665a to e2cb56b Compare November 24, 2021 23:29
@nonrational
Copy link
Member

Thanks @cjlarose! 💯 Will merge along with some other fixes and cut a new release next week.

@nonrational nonrational merged commit 8afb0c5 into puma:master Jan 9, 2022
@cjlarose
Copy link
Member Author

cjlarose commented Jan 9, 2022

Thanks @nonrational ! I actually have part 2 of this work ready-to-go soon (I removed the vendored httpu package as well as described in #290)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants