Skip to content
Snippets Groups Projects
Commit 6c8dcbe7 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

Merge branch 'usage' into 'main'

use path

See merge request !155
parents 1ae8faf7 5e918108
No related branches found
No related tags found
1 merge request!155use path
Pipeline #569445 canceled
...@@ -19,8 +19,7 @@ public class Metadata<S, T extends Query> { ...@@ -19,8 +19,7 @@ public class Metadata<S, T extends Query> {
public final DoubleParameter vs30; public final DoubleParameter vs30;
Metadata(HttpRequest<?> request, NetcdfService<S, T> netcdfService, String description) { Metadata(HttpRequest<?> request, NetcdfService<S, T> netcdfService, String description) {
var url = request.getUri().toString(); var url = request.getUri().getPath();
url = url.endsWith("/") ? url.substring(0, url.length() - 1) : url;
this.description = description; this.description = description;
syntax = new String[] { syntax = new String[] {
url + "/{longitude:number}/{latitude:number}", url + "/{longitude:number}/{latitude:number}",
......
...@@ -99,7 +99,7 @@ public abstract class NetcdfService<S, T extends Query> { ...@@ -99,7 +99,7 @@ public abstract class NetcdfService<S, T extends Query> {
return httpResponse; return httpResponse;
} catch (Exception e) { } catch (Exception e) {
var url = httpRequest.getUri().toString(); var url = httpRequest.getUri().getPath();
return NetcdfWsUtils.handleError(e, getServiceName(), url); return NetcdfWsUtils.handleError(e, getServiceName(), url);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment