Skip to content

Commit

Permalink
Fix up left Fit statement and a fmt println
Browse files Browse the repository at this point in the history
  • Loading branch information
suhlig committed Apr 29, 2015
1 parent fa29d15 commit c770b71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package proxy

import (
"errors"
"fmt"
"net"
"net/http"
"net/http/httputil"
Expand All @@ -14,7 +13,6 @@ import (
router_http "github.com/cloudfoundry/gorouter/common/http"
"github.com/cloudfoundry/gorouter/route"
steno "github.com/cloudfoundry/gosteno"
"github.com/onsi/gomega/format"
)

const (
Expand Down Expand Up @@ -127,8 +125,6 @@ func (p *proxy) getStickySession(request *http.Request) string {

func (p *proxy) lookup(request *http.Request) *route.Pool {
chopt := ChopUpPath(request.RequestURI)
fmt.Println(format.Object(request, 1))
// fmt.Println(format.Object(chopt, 1))
for i := len(chopt) - 1; i >= 0; i-- {
uri := route.Uri(hostWithoutPort(request) + chopt[i])
ret := p.registry.Lookup(uri)
Expand Down
2 changes: 1 addition & 1 deletion proxy/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var _ = Describe("Proxy", func() {
x.CheckLine("HTTP/1.0 200 OK")
})

FIt("responds to http/1.0 with path/path", func() {
It("responds to http/1.0 with path/path", func() {
ln := registerHandler(r, "test/my%20path/your_path", func(x *test_util.HttpConn) {
x.CheckLine("GET /my%20path/your_path HTTP/1.1")

Expand Down

0 comments on commit c770b71

Please sign in to comment.