Skip to content

Commit

Permalink
Rename 'X-Choreo-API-UUID' as 'X-Choreo-API-ID'
Browse files Browse the repository at this point in the history
Signed-off-by: Renuka Fernando <[email protected]>
  • Loading branch information
renuka-fernando committed Apr 17, 2024
1 parent aaf8bb2 commit 63d93b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class APIConstants {
public static final String CONTENT_TYPE_HEADER = "Content-type";
public static final String APPLICATION_JSON = "application/json";
public static final String API_TRACE_KEY = "X-TRACE-KEY";
public static final String CHOREO_API_UUID_HEADER = "X-Choreo-API-UUID";
public static final String CHOREO_API_ID_HEADER = "X-Choreo-API-ID";
public static final String X_FORWARDED_FOR = "x-forwarded-for";
public static final String PATH_HEADER = ":path";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private CheckResponse buildResponse(CheckRequest request, ResponseObject respons

// Add the API UUID to the request headers tobe sent to the backend
headerValueOption = HeaderValueOption.newBuilder()
.setHeader(HeaderValue.newBuilder().setKey(APIConstants.CHOREO_API_UUID_HEADER)
.setHeader(HeaderValue.newBuilder().setKey(APIConstants.CHOREO_API_ID_HEADER)
.setValue(responseObject.getApiUuid()).build()).build();
okResponseBuilder.addHeaders(headerValueOption);

Expand Down

0 comments on commit 63d93b4

Please sign in to comment.