File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/main/kotlin/com/javaaidev/mcp/amap/api Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ FROM eclipse-temurin:11.0.28_6-jre-noble
22
33ADD ./build/libs/amap-mcp-server-*-all.jar /opt/app.jar
44
5- CMD ["java", "-jar", "/opt/app.jar"]
5+ ENTRYPOINT ["java", "-jar", "/opt/app.jar"]
Original file line number Diff line number Diff line change @@ -66,6 +66,12 @@ suspend fun HttpClient.amapApiGet(request: ApiRequest): String {
6666object ApiInvoker {
6767 val httpClient = HttpClient {
6868 defaultRequest {
69+ headers {
70+ append(
71+ " User-Agent" ,
72+ " Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36"
73+ )
74+ }
6975 contentType(ContentType .Application .Json )
7076 }
7177 install(ContentNegotiation ) {
You can’t perform that action at this time.
0 commit comments