Skip to content

Commit

Permalink
polish: reduce magic value of 'NACOS_SERVER_HEADER' (#9663)
Browse files Browse the repository at this point in the history
  • Loading branch information
drgnchan authored Dec 6, 2022
1 parent acc8ab4 commit 5be6385
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.alibaba.nacos.common.utils.VersionUtils;
import com.alibaba.nacos.naming.selector.LabelSelector;
import com.alibaba.nacos.naming.selector.NoneSelector;
import com.alibaba.nacos.sys.env.Constants;
import com.alibaba.nacos.sys.env.EnvUtil;
import com.fasterxml.jackson.core.type.TypeReference;
import org.springframework.http.HttpStatus;
Expand Down Expand Up @@ -72,7 +73,7 @@ public class UtilsAndCommons {

// ********************** Nacos HTTP Context ************************ //

public static final String NACOS_SERVER_HEADER = "Nacos-Server";
public static final String NACOS_SERVER_HEADER = Constants.NACOS_SERVER_HEADER;

public static final String NACOS_VERSION = VersionUtils.version;

Expand Down

0 comments on commit 5be6385

Please sign in to comment.