Skip to content

Commit

Permalink
[HWKMETRICS-105] Remove tenant id fallback mechanism. Only way to sen…
Browse files Browse the repository at this point in the history
…d tenant id is via request header.
  • Loading branch information
Stefan Negrea committed May 27, 2015
1 parent 4140256 commit 0a33e7d
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,6 @@ public void filter(ContainerRequestContext requestContext) throws IOException {
return;
}

tenant = uriInfo.getQueryParameters().getFirst(TENANT_QUERY_PARAM_NAME);
if (tenant != null && !tenant.trim().isEmpty()) {
// Move tenant info from query param to header
// This makes the handler implementation easier
requestContext.getHeaders().add(TENANT_HEADER_NAME, tenant);
return;
}

// Fail on missing tenant info
Response response = Response.status(Status.BAD_REQUEST)
.type(APPLICATION_JSON_TYPE)
Expand Down

0 comments on commit 0a33e7d

Please sign in to comment.