anmolanmol1234 commented on code in PR #7496:
URL: https://github.com/apache/hadoop/pull/7496#discussion_r2020847806


##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsHttpOperation.java:
##########
@@ -776,15 +777,16 @@ public 
AbfsHttpOperationWithFixedResultForGetFileStatus(final URL url,
     @Override
     public String getResponseHeader(final String httpHeader) {
       // Directories on FNS-Blob are identified by a special metadata header.
-      if (httpHeader.equals(X_MS_META_HDI_ISFOLDER)) {
+      if (httpHeader.equalsIgnoreCase(X_MS_META_HDI_ISFOLDER)) {
         return TRUE;
       }
       return EMPTY_STRING;
     }
 
     @Override
     public Map<String, List<String>> getResponseHeaders() {
-      return new HashMap<>();
+      return Collections.singletonMap(X_MS_META_HDI_ISFOLDER,

Review Comment:
   Why are we adding this entry in the map for all getResponse header calls ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to