Format Java files with google-java-format
Change-Id: I167622fbc0a83278edcf593a4db9e5a0ebe6e667
This commit is contained in:
parent
c31fdeb346
commit
f7fc14f516
@ -26,8 +26,7 @@ import javax.servlet.Filter;
|
|||||||
|
|
||||||
/** Configures Git access over HTTP with authentication. */
|
/** Configures Git access over HTTP with authentication. */
|
||||||
public class GitOverHttpModule extends ServletModule {
|
public class GitOverHttpModule extends ServletModule {
|
||||||
private static final String LFS_URL_REGEX =
|
private static final String LFS_URL_REGEX = "^(?:(?!/a/))" + LFS_REST;
|
||||||
"^(?:(?!/a/))" + LFS_REST;
|
|
||||||
|
|
||||||
private final AuthConfig authConfig;
|
private final AuthConfig authConfig;
|
||||||
private final DownloadConfig downloadConfig;
|
private final DownloadConfig downloadConfig;
|
||||||
|
@ -53,10 +53,8 @@ public class LfsPluginServlet extends HttpServlet
|
|||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
private static final Logger log = LoggerFactory.getLogger(LfsPluginServlet.class);
|
private static final Logger log = LoggerFactory.getLogger(LfsPluginServlet.class);
|
||||||
|
|
||||||
public static final String LFS_REST =
|
public static final String LFS_REST = "(?:/p/|/)(.+)(?:/info/lfs/objects/batch)$";
|
||||||
"(?:/p/|/)(.+)(?:/info/lfs/objects/batch)$";
|
public static final String URL_REGEX = "^(?:/a)?" + LFS_REST;
|
||||||
public static final String URL_REGEX =
|
|
||||||
"^(?:/a)?" + LFS_REST;
|
|
||||||
|
|
||||||
private static final String CONTENTTYPE_VND_GIT_LFS_JSON =
|
private static final String CONTENTTYPE_VND_GIT_LFS_JSON =
|
||||||
"application/vnd.git-lfs+json; charset=utf-8";
|
"application/vnd.git-lfs+json; charset=utf-8";
|
||||||
|
Loading…
Reference in New Issue
Block a user