Remove spring-cloud-function-adapter-aws-web, fix Proxy response to return empty collection if header is not present

This commit is contained in:
Oleg Zhurakousky
2023-07-10 15:56:01 +02:00
parent a744e7af1a
commit 21cc097ec1
23 changed files with 4 additions and 1474 deletions

View File

@@ -27,6 +27,7 @@ import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Locale;
@@ -264,6 +265,9 @@ public class ProxyHttpServletResponse implements HttpServletResponse {
*/
@Override
public List<String> getHeaders(String name) {
if (!this.headers.containsKey(name)) {
return Collections.emptyList();
}
return this.headers.get(name);
}