Commit 39b50833 authored by Jacob Vosmaer's avatar Jacob Vosmaer

go fmt

parent 04d16195
package helper
import (
"log"
"net/http"
"net/http/httptest"
"net/http"
"regexp"
"testing"
"regexp"
"log"
)
func AssertResponseCode(t *testing.T, response *httptest.ResponseRecorder, expectedCode int) {
......@@ -42,4 +42,4 @@ func TestServerWithHandler(url *regexp.Regexp, handler http.HandlerFunc) *httpte
handler(w, r)
}))
}
\ No newline at end of file
}
......@@ -7,7 +7,7 @@ package lfs
import (
"../api"
"../helper"
"../proxy"
"../proxy"
"bytes"
"crypto/sha256"
"encoding/hex"
......
......@@ -14,20 +14,20 @@ import (
"net"
"net/http"
"net/url"
"path"
"strings"
"path"
"time"
)
type Upstream struct {
Version string
API *api.API
Proxy *proxy.Proxy
DocumentRoot string
DevelopmentMode bool
Version string
API *api.API
Proxy *proxy.Proxy
DocumentRoot string
DevelopmentMode bool
ResponseHeadersTimeout time.Duration
urlPrefix urlPrefix
routes []route
urlPrefix urlPrefix
routes []route
}
func New(authBackend string, authSocket string, version string, responseHeadersTimeout time.Duration) *Upstream {
......@@ -143,4 +143,4 @@ func cleanURIPath(p string) string {
np += "/"
}
return np
}
\ No newline at end of file
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment