mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
added removeMatrixParameter method to HttpUtil
This commit is contained in:
@@ -252,6 +252,27 @@ public class HttpUtil
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method description
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @param uri
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
* @since 1.10
|
||||||
|
*/
|
||||||
|
public static String removeMatrixParameter(String uri)
|
||||||
|
{
|
||||||
|
int index = uri.indexOf(";");
|
||||||
|
|
||||||
|
if (index > 0)
|
||||||
|
{
|
||||||
|
uri = uri.substring(0, index);
|
||||||
|
}
|
||||||
|
|
||||||
|
return uri;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Send an unauthorized header back to the client
|
* Send an unauthorized header back to the client
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user