Skip to content

Commit c58408b

Browse files
committed
Add note to readme to use self-host
1 parent 10e0993 commit c58408b

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ docker run -p 80:80 sharat87/httpbun
1414

1515
A project by [Shri](https://sharats.me).
1616

17+
:warning: If you are using this from your CI, please don't. Run a local version using the above Docker command, within your CI system, and use that "locally".
18+
1719
## Building
1820

1921
There's a `Taskfile.dist.yml` included in the project, which is a [Taskfile](https://taskfile.dev). Once you have `task` installed, running `task run` will start a local server from source. There's also:

ex/exchange.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,6 @@ func (ex Exchange) Finish(resp response.Response) {
259259
// Set `Content-Length` header, to disable chunked transfer. See https://github.com/sharat87/httpbun/issues/13
260260
ex.responseWriter.Header().Set("Content-Length", fmt.Sprint(len(body)))
261261

262-
if ex.Request.Host == "httpbun.org" {
263-
ex.responseWriter.Header().Set("X-Notice", "httpbun.org is deprecated. Please use httpbun.com instead.")
264-
}
265-
266262
ex.responseWriter.WriteHeader(status)
267263

268264
_, err := ex.responseWriter.Write(body)

server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func (s Server) ServeHTTP(w http.ResponseWriter, req *http.Request) {
9898
"From %s %s %s",
9999
incomingIP,
100100
req.Method,
101-
req.URL.String(),
101+
req.URL.String()[2:],
102102
)
103103

104104
// Skip all route checking when root-is-any is enabled.

0 commit comments

Comments
 (0)